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)
35enum 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(); }
204 bool delay(uint32 time,
bool interruptable =
false);
bool delay(uint32 time, bool interruptable=false)
void warpMouse(const Common::Point &pt)
Common::CustomEventType getAction()
void setCursor(CursorId cursorId)
Common::Point screenMousePos() const
Definition: events.h:139
void setCursor(CursorId cursorId, const Common::Point &cursorPos, const Graphics::Surface &surface)
Common::Point mousePos() const
void loadCursors(const Common::Path &filename)
void setFrameRate(int newRate)
bool actionHit() const
Definition: events.h:169
bool kbHit() const
Definition: events.h:164
Common::KeyState getKey()
bool isCursorVisible() const
void animateCursorIfNeeded()
CursorId getCursor() const
void setCursor(const Graphics::Surface &src, int hotspotX=0, int hotspotY=0)
uint32 getFrameCounter() const
Definition: events.h:159
Definition: image_file.h:78
Definition: sherlock.h:206
uint32 CustomEventType
Definition: events.h:212
Definition: keyboard.h:294