Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/keyboard.cc')
-rw-r--r--src/client/keyboard.cc21
1 files changed, 11 insertions, 10 deletions
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