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-02-05 23:40:20 +0000
committerStijn Buys <ingar@osirion.org>2008-02-05 23:40:20 +0000
commit00a039fffea099eb53d2bbe77d3300b3d7ea768f (patch)
tree2255960b8f4b9c782502e9caa00703ffc134a6db /src/client/keyboard.h
parent1ed2e8eb1f1909a35f6fc8d5d6065bcac37c27ea (diff)
make keyboard input actually work
Diffstat (limited to 'src/client/keyboard.h')
-rw-r--r--src/client/keyboard.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/client/keyboard.h b/src/client/keyboard.h
new file mode 100644
index 0000000..10953c9
--- /dev/null
+++ b/src/client/keyboard.h
@@ -0,0 +1,24 @@
+/*
+ client/keyboard.h
+ This file is part of the Osirion project and is distributed under
+ the terms and conditions of the GNU General Public License version 2
+*/
+
+#ifndef __INCLUDED_CLIENT_KEYS_H__
+#define __INCLUDED_CLIENT_KEYS_H__
+
+#include "SDL/SDL.h"
+
+namespace client {
+
+/// convert SDL_keysym to an ascii character
+char keysym_to_char(const SDL_keysym &keysym);
+
+/// set the keyboard input mode
+/** @param input true for console input, false for game input
+ */
+void setkeyboardmode(bool input);
+
+} // namespace client
+
+#endif // __INCLUDED_CLIENT_KEYS_H__