diff options
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__ |