Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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__