From b417df720584c101f3799874a0c836a543a8d0a8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 12 Oct 2008 14:55:10 +0000 Subject: user interface updates, work-in-progress --- src/client/keyboard.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/client/keyboard.cc') diff --git a/src/client/keyboard.cc b/src/client/keyboard.cc index b420fb8..80e0d5c 100644 --- a/src/client/keyboard.cc +++ b/src/client/keyboard.cc @@ -515,16 +515,7 @@ void Keyboard::list_binds() con_print << n << " registered binds" << std::endl; } -void setkeyboardmode(bool input) -{ - /* if(input) - SDL_EnableKeyRepeat(250, SDL_DEFAULT_REPEAT_INTERVAL); - else - SDL_EnableKeyRepeat(10, SDL_DEFAULT_REPEAT_INTERVAL); - */ -} - -unsigned int translate_keysym(int keysym, int modifier) +unsigned int Keyboard::translate_keysym(int keysym, int modifier) { bool shift = false; @@ -715,4 +706,14 @@ unsigned int translate_keysym(int keysym, int modifier) return keysym; } +/* +void setkeyboardmode(bool input) +{ + if(input) + SDL_EnableKeyRepeat(250, SDL_DEFAULT_REPEAT_INTERVAL); + else + SDL_EnableKeyRepeat(10, SDL_DEFAULT_REPEAT_INTERVAL); + +} +*/ } // namespace client -- cgit v1.2.3