#include "wx/wxprec.h"
-#ifndef WX_PRECOMP
-#include "wx/defs.h"
-#endif
+#if wxUSE_UIACTIONSIMULATOR
#include "wx/uiaction.h"
-#include <windows.h>
+#include "wx/msw/wrapwin.h"
DWORD EventTypeForMouseButton(int button, bool isDown)
{
return MOUSEEVENTF_MIDDLEDOWN;
else
return MOUSEEVENTF_MIDDLEUP;
-
+
default:
wxFAIL_MSG("Unsupported button passed in.");
return -1;
}
bool wxUIActionSimulator::MouseMove(long x, long y)
-{
+{
mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
return true;
}
return true;
}
+#endif // wxUSE_UIACTIONSIMULATOR