diff options
author | Nicola Mettifogo | 2007-09-19 08:40:12 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-09-19 08:40:12 +0000 |
commit | 258901bab96f0050385a9912c8ea0fe2a41b2d6f (patch) | |
tree | a3ae8675b679c9f3b58ac8d97c79369502ea23c1 /engines/lure/events.cpp | |
parent | a89694c0d61a75a960f5bec6c498659c988401cc (diff) | |
download | scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.tar.gz scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.tar.bz2 scummvm-rg350-258901bab96f0050385a9912c8ea0fe2a41b2d6f.zip |
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
svn-id: r28966
Diffstat (limited to 'engines/lure/events.cpp')
-rw-r--r-- | engines/lure/events.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/lure/events.cpp b/engines/lure/events.cpp index 055bfac49c..68dc808392 100644 --- a/engines/lure/events.cpp +++ b/engines/lure/events.cpp @@ -23,7 +23,7 @@ * */ -#include "common/stdafx.h" + #include "common/events.h" #include "graphics/cursorman.h" @@ -35,14 +35,14 @@ namespace Lure { static Mouse *int_mouse = NULL; -Mouse &Mouse::getReference() { - return *int_mouse; +Mouse &Mouse::getReference() { + return *int_mouse; } Mouse::Mouse() { int_mouse = this; - _lButton = false; + _lButton = false; _rButton = false; _cursorNum = CURSOR_ARROW; _x = 0; @@ -87,7 +87,7 @@ void Mouse::cursorOff() { void Mouse::setCursorNum(CursorType cursorNum) { int hotspotX = 7, hotspotY = 7; if ((cursorNum == CURSOR_ARROW) || (cursorNum == CURSOR_MENUBAR)) { - hotspotX = 0; + hotspotX = 0; hotspotY = 0; } @@ -105,7 +105,7 @@ void Mouse::setCursorNum(CursorType cursorNum, int hotspotX, int hotspotY) { void Mouse::pushCursorNum(CursorType cursorNum) { int hotspotX = 7, hotspotY = 7; if ((cursorNum == CURSOR_ARROW) || (cursorNum == CURSOR_MENUBAR)) { - hotspotX = 0; + hotspotX = 0; hotspotY = 0; } @@ -186,7 +186,7 @@ void Events::waitForPress() { else if ((_event.type == Common::EVENT_LBUTTONDOWN) || (_event.type == Common::EVENT_RBUTTONDOWN)) { keyButton = true; - Mouse::getReference().waitForRelease(); + Mouse::getReference().waitForRelease(); } } g_system->delayMillis(20); @@ -205,7 +205,7 @@ bool Events::interruptableDelay(uint32 milliseconds) { if (events.quitFlag) return true; if (events.pollEvent()) { - if (events.type() == Common::EVENT_KEYDOWN) + if (events.type() == Common::EVENT_KEYDOWN) return events.event().kbd.keycode == 27; else if (events.type() == Common::EVENT_LBUTTONDOWN) return false; |