diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-05 23:40:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-05 23:40:20 +0000 |
commit | 00a039fffea099eb53d2bbe77d3300b3d7ea768f (patch) | |
tree | 2255960b8f4b9c782502e9caa00703ffc134a6db /src/client/keyboard.h | |
parent | 1ed2e8eb1f1909a35f6fc8d5d6065bcac37c27ea (diff) |
make keyboard input actually work
Diffstat (limited to 'src/client/keyboard.h')
-rw-r--r-- | src/client/keyboard.h | 24 |
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__ |