22 #ifndef SLUDGE_EVENT_H 23 #define SLUDGE_EVENT_H 26 class SeekableReadStream;
32 struct FrozenStuffStruct;
35 bool leftClick, rightClick, justMoved, leftRelease, rightRelease;
36 int mouseX, mouseY, keyPressed;
51 int func[EVENT_FUNC_NB];
68 int mouseX()
const {
return _input.mouseX; }
69 int mouseY()
const {
return _input.mouseY; }
70 int &mouseX() {
return _input.mouseX; }
71 int &mouseY() {
return _input.mouseY; }
74 void setEventFunction(EventFunctions event,
int funcNum) { _currentEvents->func[event] = funcNum; };
81 void startGame() { _weAreDoneSoQuit =
false; }
82 void quitGame() { _weAreDoneSoQuit =
true; }
83 bool quit() {
return _weAreDoneSoQuit; }
90 bool _reallyWantToQuit;
Definition: algorithm.h:29