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>2008-07-22 13:14:35 +0000
committerStijn Buys <ingar@osirion.org>2008-07-22 13:14:35 +0000
commit59ea9fffec01a6cc3fbf147aa311bfaa9abaa933 (patch)
tree818d0aa87f57575d66b4fe37b74de73a525f9614 /src/client/keyboard.h
parentbe7bb48ecb252cd098f6cae7c72b6645c2be4609 (diff)
list_actions, renamed thruster actions
Diffstat (limited to 'src/client/keyboard.h')
-rw-r--r--src/client/keyboard.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/keyboard.h b/src/client/keyboard.h
index 8275b1a..1c70179 100644
--- a/src/client/keyboard.h
+++ b/src/client/keyboard.h
@@ -9,9 +9,11 @@
#include <string>
#include <map>
+#include <list>
#include "SDL/SDL.h"
+#include "client/action.h"
#include "client/key.h"
namespace client {
@@ -40,9 +42,15 @@ public:
/// list keyboard key names
void list_keys();
+ /// list actions
+ void list_actions();
+
/// list keyboard binds
void list_binds();
+ /// list binds for a singe key
+ void list_bind(std::string const &name);
+
/// load keyboard binds
void load_binds();
@@ -64,7 +72,10 @@ private:
void add_key(const char *name, const unsigned int keysym, const char ascii=0, const char *bind=0);
+ void add_action(const char *name, Action::Identifier action, const char *info = 0);
+
std::map<unsigned int, Key *> keys;
+ std::list<Action *> actions;
bool numlock;
bool capslock;