From 00a039fffea099eb53d2bbe77d3300b3d7ea768f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Feb 2008 23:40:20 +0000 Subject: make keyboard input actually work --- src/client/keyboard.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/client/keyboard.h (limited to 'src/client/keyboard.h') 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__ -- cgit v1.2.3