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" 35 CURSOR_CROSSHAIRS = 1,
45 CURSOR_DARK_ANKH = 10,
49 #define GAME_FRAME_RATE 100 50 #define GAME_FRAME_TIME (1000 / GAME_FRAME_RATE) 51 #define GAME_TIMER_TIME 15 59 uint32 _priorFrameTime;
60 uint32 _priorTimerTime;
61 Common::KeyCode _keyCode;
65 bool checkForNextFrameCounter();
66 bool checkForNextTimerUpdate();
69 void keyControl(Common::KeyCode keycode,
bool isKeyDown);
74 CursorType _normalMouse;
75 bool _leftButton, _rightButton;
77 bool _wheelUp, _wheelDown;
79 int _mouseCol, _mouseRow;
139 void pollEvents(
bool skipTimers =
false);
141 void pollEventsAndWait();
143 void zeroKeysActions();
149 Common::KeyCode peekKeyCode()
const {
return _keyCode; }
151 bool isKeyActionPending()
const;
153 void delay(
int time = 5);
155 void delayUntilNextFrame();
159 void debounceRight();
163 void waitKeyActionMouse();
165 const Common::Point &getMousePos()
const {
return _mousePos; }
171 bool isKeyActionMousePressed();
173 void centerMousePos();
174 void restrictMouse();
176 static int16 clipMouseCenter(int16 mousePos, int16 length, int16 maxLength, int16 &warpMousePos);
179 uint32 getDoubleClickTime()
const;
181 uint32 getPriorFrameTime()
const {
return _priorFrameTime; }
Definition: managed_surface.h:51
void forceSetCursor(CursorType cursorId)
uint32 getFrameCounter() const
Definition: events.h:97
uint32 CustomEventType
Definition: events.h:204
EventsManager(AccessEngine *vm)
CursorType getCursor() const
Definition: events.h:122
void setCursor(CursorType cursorId)
void setNormalCursor(CursorType cursorId)
void setCursorData(Graphics::ManagedSurface *src, const Common::Rect &r)