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>2007-10-21 23:02:47 +0000
committerStijn Buys <ingar@osirion.org>2007-10-21 23:02:47 +0000
commita237a2d7723b94df6cd3e91401ec28388de6f1a0 (patch)
tree7da376d276d03fced7b94a807c0952fd32bcde08 /src/client/input.h
parent084c6212afaa6f996091f36d0ff85ac845803a87 (diff)
namespace cleanup
Diffstat (limited to 'src/client/input.h')
-rw-r--r--src/client/input.h20
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__