22 #ifndef ACCESS_EVENTS_H 23 #define ACCESS_EVENTS_H 25 #include "common/scummsys.h" 26 #include "common/events.h" 27 #include "common/stack.h" 33 CURSOR_ARROW = 0, CURSOR_CROSSHAIRS, CURSOR_2, CURSOR_3, CURSOR_LOOK,
34 CURSOR_USE, CURSOR_TAKE, CURSOR_CLIMB, CURSOR_TALK, CURSOR_HELP,
38 #define GAME_FRAME_RATE 100 39 #define GAME_FRAME_TIME (1000 / GAME_FRAME_RATE) 40 #define GAME_TIMER_TIME 15 48 uint32 _priorFrameTime;
49 uint32 _priorTimerTime;
50 Common::KeyCode _keyCode;
54 bool checkForNextFrameCounter();
55 bool checkForNextTimerUpdate();
58 void keyControl(Common::KeyCode keycode,
bool isKeyDown);
62 CursorType _normalMouse;
63 bool _leftButton, _rightButton;
65 bool _wheelUp, _wheelDown;
67 int _mouseCol, _mouseRow;
126 void pollEvents(
bool skipTimers =
false);
128 void pollEventsAndWait();
130 void zeroKeysActions();
134 bool isKeyActionPending()
const;
136 void delay(
int time = 5);
142 void waitKeyActionMouse();
150 bool isKeyActionMousePressed();
152 void centerMousePos();
153 void restrictMouse();
Definition: managed_surface.h:51
void forceSetCursor(CursorType cursorId)
uint32 getFrameCounter()
Definition: events.h:84
uint32 CustomEventType
Definition: events.h:204
EventsManager(AccessEngine *vm)
CursorType getCursor() const
Definition: events.h:109
void setCursor(CursorType cursorId)
void setNormalCursor(CursorType cursorId)
void setCursorData(Graphics::ManagedSurface *src, const Common::Rect &r)