diff options
author | Max Horn | 2009-03-07 19:24:31 +0000 |
---|---|---|
committer | Max Horn | 2009-03-07 19:24:31 +0000 |
commit | f9ecd95d6960341e696ab1aa8262e48135908d51 (patch) | |
tree | 4ab853891a0ca47c4d46a2691546e27a7e05b7f9 /engines/sci/gfx | |
parent | 2dfae035ac7351b1161d0466405c1d44d69f701a (diff) | |
download | scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.gz scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.tar.bz2 scummvm-rg350-f9ecd95d6960341e696ab1aa8262e48135908d51.zip |
Whitespace cleanup: Convert space followed by tab to just tab
svn-id: r39203
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index f92c3b9226..e66156a482 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1496,17 +1496,17 @@ static sci_event_t scummvm_get_event(gfx_driver_t *drv) { // We add the modifier key status to buckybits // SDL sends a keydown event if a modifier key is turned on and a keyup event if it's off // - // FIXME: This code is semi-bogus. It only records the modifier key being *pressed*. - // It does not track correctly whether capslock etc. is active. To do that, we - // would have to record the fact that the modifier was pressed in global var, - // and also watch for Common::EVENT_KEYUP events. - // But this is still not quite good enough, because not all events might - // pass through here (e.g. the GUI might be running with its own event loop). - // - // The best solution likely would be to add code to the EventManager class - // for tracking which keys are pressed and which are not... + // FIXME: This code is semi-bogus. It only records the modifier key being *pressed*. + // It does not track correctly whether capslock etc. is active. To do that, we + // would have to record the fact that the modifier was pressed in global var, + // and also watch for Common::EVENT_KEYUP events. + // But this is still not quite good enough, because not all events might + // pass through here (e.g. the GUI might be running with its own event loop). + // + // The best solution likely would be to add code to the EventManager class + // for tracking which keys are pressed and which are not... if (ev.type == Common::EVENT_KEYDOWN || ev.type == Common::EVENT_KEYUP) { - switch (ev.kbd.keycode) { + switch (ev.kbd.keycode) { case Common::KEYCODE_CAPSLOCK: if (ev.type == Common::EVENT_KEYDOWN) { _modifierStates |= SCI_EVM_CAPSLOCK; |