Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
committerStijn Buys <ingar@osirion.org>2008-10-12 14:55:10 +0000
commitb417df720584c101f3799874a0c836a543a8d0a8 (patch)
treefb7105ed662f13753a6ab8d3efb047bad04f2316 /src/client/keyboard.cc
parent18383a5fc596bf9546f14d7393ee66c57720b116 (diff)
user interface updates, work-in-progress
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