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;
53 bool checkForNextFrameCounter();
54 bool checkForNextTimerUpdate();
57 void keyControl(Common::KeyCode keycode,
bool isKeyDown);
60 CursorType _normalMouse;
61 bool _leftButton, _rightButton;
63 bool _wheelUp, _wheelDown;
65 int _mouseCol, _mouseRow;
124 void pollEvents(
bool skipTimers =
false);
126 void pollEventsAndWait();
132 bool isKeyPending()
const;
134 void delay(
int time = 5);
148 bool isKeyMousePressed();
150 void centerMousePos();
151 void restrictMouse();
Definition: managed_surface.h:51
void forceSetCursor(CursorType cursorId)
uint32 getFrameCounter()
Definition: events.h:82
EventsManager(AccessEngine *vm)
CursorType getCursor() const
Definition: events.h:107
void setCursor(CursorType cursorId)
void setNormalCursor(CursorType cursorId)
Definition: keyboard.h:294
void setCursorData(Graphics::ManagedSurface *src, const Common::Rect &r)