Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
This commit is contained in:
parent
f272d19570
commit
ed54ea9155
88 changed files with 762 additions and 748 deletions
|
@ -68,9 +68,9 @@ bool Introduction::delay(uint32 milliseconds) {
|
|||
if (events.quitFlag) return true;
|
||||
|
||||
if (events.pollEvent()) {
|
||||
if (events.type() == OSystem::EVENT_KEYDOWN)
|
||||
if (events.type() == Common::EVENT_KEYDOWN)
|
||||
return events.event().kbd.keycode == 27;
|
||||
else if (events.type() == OSystem::EVENT_LBUTTONDOWN)
|
||||
else if (events.type() == Common::EVENT_LBUTTONDOWN)
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue