diff options
Diffstat (limited to 'backends/events/default/default-events.h')
-rw-r--r-- | backends/events/default/default-events.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/events/default/default-events.h b/backends/events/default/default-events.h index 1b6c821c23..229249a44d 100644 --- a/backends/events/default/default-events.h +++ b/backends/events/default/default-events.h @@ -46,6 +46,19 @@ class DefaultEventManager : public Common::EventManager { int _modifierState; bool _shouldQuit; + // for continuous events (keyDown) + enum { + kKeyRepeatInitialDelay = 400, + kKeyRepeatSustainDelay = 100 + }; + + struct { + uint16 ascii; + byte flags; + int keycode; + } _currentKeyDown; + uint32 _keyRepeatTime; + public: DefaultEventManager(OSystem *boss); |