diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-22 22:36:23 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-22 22:36:23 +0000 |
commit | 82c06412ef39522c4deab457ce7a3e78160d8a19 (patch) | |
tree | 80a656d624c1d979df956a6982fb2246b81b6c69 /src/client/input.cc | |
parent | 9b041ac2e075bfb3a30397a8acdc5432860d2c84 (diff) |
keypad and numlock support
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/input.cc b/src/client/input.cc index 5dda3fb..c9c2514 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -28,11 +28,13 @@ void init() { con_print << "Initializing input..." << std::endl; client::setkeyboardmode(console::visible()); +// SDL_EnableUNICODE(1); } void shutdown() { con_print << "Shutting down input..." << std::endl; +// SDL_EnableUNICODE(0); } // handle key release for the game world @@ -115,7 +117,7 @@ void frame(float seconds) console::toggle(); } else if (console::visible()) { // send key events to the console - console::keypressed(event.key.keysym); + console::keypressed(translate_keysym(event.key.keysym)); } else if (core::application()->connected() && core::localcontrol()) { // send key events to the game world keypressed(event.key.keysym); |