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();
164 bool kbHit()
const {
return !_pendingKeys.empty(); }
169 bool actionHit()
const {
return !_pendingActions.empty(); }
199 void wait(
int numFrames);
204 bool delay(uint32 time,
bool interruptable =
false);
bool isCursorVisible() const
Common::CustomEventType getAction()
bool actionHit() const
Definition: events.h:169
uint32 getFrameCounter() const
Definition: events.h:159
Definition: animation.h:29
void setCursor(CursorId cursorId)
uint32 CustomEventType
Definition: events.h:204
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:164
Definition: sherlock.h:206
Common::Point screenMousePos() const
Definition: events.h:139
Definition: keyboard.h:294
Common::KeyState getKey()
Definition: image_file.h:78
Common::Point mousePos() const