diff options
author | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:02:47 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2007-10-21 23:02:47 +0000 |
commit | a237a2d7723b94df6cd3e91401ec28388de6f1a0 (patch) | |
tree | 7da376d276d03fced7b94a807c0952fd32bcde08 /src/client/input.h | |
parent | 084c6212afaa6f996091f36d0ff85ac845803a87 (diff) |
namespace cleanup
Diffstat (limited to 'src/client/input.h')
-rw-r--r-- | src/client/input.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/src/client/input.h b/src/client/input.h index f1e94d9..6027d58 100644 --- a/src/client/input.h +++ b/src/client/input.h @@ -6,19 +6,29 @@ #ifndef __INCLUDED_INPUT_H__ #define __INCLUDED_INPUT_H__ +#include <SDL/SDL.h> -namespace input +namespace client { + +class Input { +public: /// initialize the input subsystem - void init(); + static void init(); /// shutdown the input subsystem - void shutdown(); + static void shutdown(); /// exit the application - void quit(int exit_code); + static void quit(int exit_code); /// process input events - void process(); + static void process(); + +protected: + /// handle keydown events + static void handle_keydown(SDL_keysym* keysym); }; +} // namespace Client + #endif // __INCLUDED_INPUT_H__ |