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/keyboard.h')
-rw-r--r--src/client/keyboard.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/client/keyboard.h b/src/client/keyboard.h
index f63bce1..f533838 100644
--- a/src/client/keyboard.h
+++ b/src/client/keyboard.h
@@ -16,7 +16,8 @@
#include "client/action.h"
#include "client/key.h"
-namespace client {
+namespace client
+{
class Keyboard
{
@@ -65,15 +66,19 @@ public:
typedef std::map<unsigned int, Key *>::iterator iterator;
- inline iterator begin() { return keys.begin(); }
-
- inline iterator end() { return keys.end(); }
+ inline iterator begin() {
+ return keys.begin();
+ }
+
+ inline iterator end() {
+ return keys.end();
+ }
/// convert SDL_keysym to a keystroke
static unsigned int translate_keysym(int keysym, int modifier);
private:
- Key *add_key(const char *name, const unsigned int keysym, const char ascii=0, const char *bind=0);
+ Key *add_key(const char *name, const unsigned int keysym, const char ascii = 0, const char *bind = 0);
Action *add_action(const char *name, Action::Identifier action, const char *info = 0);