22 #ifndef BACKENDS_KEYMAPPER_VIRTUAL_MOUSE_H 23 #define BACKENDS_KEYMAPPER_VIRTUAL_MOUSE_H 25 #include "common/scummsys.h" 27 #include "common/events.h" 31 class EventDispatcher;
59 static const int32 kUpdateDelay = 12;
60 static const int32 kDefaultScreenWidth = 640;
63 kCustomActionVirtualAxisUp = 10000,
64 kCustomActionVirtualAxisDown = 10001,
65 kCustomActionVirtualAxisLeft = 10002,
66 kCustomActionVirtualAxisRight = 10003,
67 kCustomActionVirtualMouseSlow = 10004
70 void handleAxisMotion(int16 axisPositionX, int16 axisPositionY);
71 float computeJoystickMouseSpeedFactor()
const;
75 int16 _inputAxisPositionX;
76 int16 _inputAxisPositionY;
78 float _mouseVelocityX;
79 float _mouseVelocityY;
82 float _subPixelRemainderX;
83 float _subPixelRemainderY;
85 uint32 _lastUpdateMillis;
90 #endif // #ifndef BACKENDS_KEYMAPPER_VIRTUAL_MOUSE_H
bool pollEvent(Event &event) override
Definition: algorithm.h:29
void addActionsToKeymap(Keymap *keymap)
bool notifyEvent(const Event &event) override
Definition: virtual-mouse.h:44