22 #ifndef CHEWY_EVENTS_H 23 #define CHEWY_EVENTS_H 25 #include "common/events.h" 26 #include "graphics/screen.h" 32 int _scanCode = Common::KEYCODE_INVALID;
35 typedef void (*TimerProc)();
41 uint32 _nextFrameTime;
42 TimerRecord(TimerProc proc, uint32 interval) : _proc(proc), _interval(interval), _nextFrameTime(0) {
48 void init_timer_handler();
49 static void timer_handler();
55 int16 _hotkey = Common::KEYCODE_INVALID;
56 bool _ignoreKeyUp =
false;
66 static void updateScreen();
73 void addTimer(TimerProc proc, uint interval) {
74 _timers.
push_back(TimerRecord(proc, interval));
96 void delay(
size_t time);
116 void setHotKey(Common::KeyCode key) { _hotkey = key; }
117 int16 getSwitchCode();
128 extern void delay(
size_t time);
133 #define EVENTS_UPDATE g_events->update() 134 #define EVENTS_CLEAR g_events->clearEvents()
void ignoreNextKeyUp()
Definition: events.h:123
void push_back(const t_T &element)
Definition: list.h:174