#include "wx/wxprec.h"
+#if wxUSE_UIACTIONSIMULATOR
+
#include "wx/uiaction.h"
wxUIActionSimulator::wxUIActionSimulator()
}
-bool wxUIActionSimulator::MouseClick(int button)
+bool wxUIActionSimulator::MouseClick(int button)
{
MouseDown(button);
MouseUp(button);
-
+
return true;
}
-bool wxUIActionSimulator::MouseDblClick(int button)
+bool wxUIActionSimulator::MouseDblClick(int button)
{
MouseDown(button);
MouseUp(button);
MouseDown(button);
MouseUp(button);
-
+
return true;
}
{
MouseMove(x1, y1);
MouseDown(button);
- MouseMove(x2, y2);
+ MouseMove(x2, y2);
MouseUp(button);
-
+
return true;
}
{
Key(keycode, false, shiftDown, cmdDown, altDown);
Key(keycode, true, shiftDown, cmdDown, altDown);
-
+
return true;
-}
+}
+
+#endif // wxUSE_UIACTIONSIMULATOR