diff options
author | Stijn Buys <ingar@osirion.org> | 2010-02-21 19:45:50 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2010-02-21 19:45:50 +0000 |
commit | fe229598d7437a85988eb9255cd0f6bdb6e07cb7 (patch) | |
tree | db45ca0f0732f3dbb3fd2546dc5881a1aec6ae61 /src/client/action.h | |
parent | 730c452ff5896ed66114e6b2153add9379edef5c (diff) |
optimized keyboard input handling routines
Diffstat (limited to 'src/client/action.h')
-rw-r--r-- | src/client/action.h | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/src/client/action.h b/src/client/action.h index 778c40d..5d56bb9 100644 --- a/src/client/action.h +++ b/src/client/action.h @@ -12,27 +12,42 @@ namespace client { -/// an Action that can be bound to a key +/** + * @brief a client action key slot. + * actions are interpreted directly by the client and do not go throught the + * command line systems. + */ class Action { public: /// actions - enum Identifier {None = 0}; + enum Identifier {None = 0, + Console, + Left, Right, Up, Down, + RollLeft, RollRight, + StrafeLeft, StrafeRight, + ThrustUp, ThrustDown, + Afterburner, Reverse, + Control, + CamLeft, CamRight, CamUp, CamDown, + ZoomIn, ZoomOut, + }; /// define a new action Action(const char *name, Identifier action, const char *info = 0); ~Action(); - /// name of the Action + /// name inline std::string const & name() const { return action_name; } - /// Action Identifier + /// identifier inline Identifier id() const { return action_id; } + /// text description inline std::string const & info() const { return action_info; } |