22 #ifndef SHERLOCK_EVENTS_H 23 #define SHERLOCK_EVENTS_H 25 #include "common/scummsys.h" 26 #include "common/events.h" 27 #include "common/queue.h" 28 #include "sherlock/image_file.h" 32 #define GAME_FRAME_RATE 30 33 #define GAME_FRAME_TIME (1000 / GAME_FRAME_RATE) 35 enum CursorId { ARROW = 0, MAGNIFY = 1, WAIT = 2, EXIT_ZONES_START = 5, INVALID_CURSOR = -1 };
43 uint32 _priorFrameTime;
53 bool checkForNextFrameCounter();
163 bool kbHit()
const {
return !_pendingKeys.empty(); }
183 void wait(
int numFrames);
188 bool delay(uint32 time,
bool interruptable =
false);
bool isCursorVisible() const
uint32 getFrameCounter() const
Definition: events.h:158
Definition: animation.h:29
void setCursor(CursorId cursorId)
void setFrameRate(int newRate)
CursorId getCursor() const
void loadCursors(const Common::Path &filename)
bool delay(uint32 time, bool interruptable=false)
void animateCursorIfNeeded()
bool kbHit() const
Definition: events.h:163
Definition: sherlock.h:76
Common::Point screenMousePos() const
Definition: events.h:138
Definition: keyboard.h:294
Common::KeyState getKey()
Definition: image_file.h:78
Common::Point mousePos() const