diff options
Diffstat (limited to 'engines/cge/events.cpp')
-rw-r--r-- | engines/cge/events.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/engines/cge/events.cpp b/engines/cge/events.cpp index e5ad00da5e..49b08e407b 100644 --- a/engines/cge/events.cpp +++ b/engines/cge/events.cpp @@ -34,10 +34,7 @@ namespace CGE { /*----------------- KEYBOARD interface -----------------*/ -Sprite *Keyboard::_client = NULL; -uint8 Keyboard::_key[0x60] = { 0 }; -uint16 Keyboard::_current = 0; -uint16 Keyboard::_code[0x60] = { +const uint16 Keyboard::_code[0x60] = { 0, Esc, '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '+', BSp, @@ -60,10 +57,12 @@ uint16 Keyboard::_code[0x60] = { 0 * 0x5F }; -void (* Keyboard::OldKeyboard)(...); - Keyboard::Keyboard() { + _client = NULL; + Common::set_to(&_key[0], &_key[0x60], 0); + _current = 0; + // steal keyboard interrupt /* TODO replace totally by scummvm handling OldKeyboard = getvect(KEYBD_INT); |