From 82c06412ef39522c4deab457ce7a3e78160d8a19 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 22 Feb 2008 22:36:23 +0000 Subject: keypad and numlock support --- src/client/input.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/client/input.cc') 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); -- cgit v1.2.3