diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 09:34:55 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 09:34:55 +0000 |
| commit | 2b53f91a1f24dfba2837b458177042efd48260cd (patch) | |
| tree | b17edbe2f832c5ea3a1e0a831ddff4409ea87a49 /src/game/client/components/binds.hpp | |
| parent | dfe7cb157938a861636c2a4dc1e53dbabba03fec (diff) | |
| download | zcatch-2b53f91a1f24dfba2837b458177042efd48260cd.tar.gz zcatch-2b53f91a1f24dfba2837b458177042efd48260cd.zip | |
added the special binds again. console can now be accessed in the menus aswell
Diffstat (limited to 'src/game/client/components/binds.hpp')
| -rw-r--r-- | src/game/client/components/binds.hpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/game/client/components/binds.hpp b/src/game/client/components/binds.hpp index 304b4a8d..e9232484 100644 --- a/src/game/client/components/binds.hpp +++ b/src/game/client/components/binds.hpp @@ -6,14 +6,20 @@ class BINDS : public COMPONENT public: BINDS(); + class BINDS_SPECIAL : public COMPONENT + { + public: + BINDS *binds; + virtual bool on_input(INPUT_EVENT e); + }; + + BINDS_SPECIAL special_binds; + void bind(int keyid, const char *str); void set_defaults(); void unbindall(); const char *get(int keyid); - /*virtual void on_reset(); - virtual void on_render(); - virtual void on_message(int msgtype, void *rawmsg);*/ virtual void on_init(); virtual bool on_input(INPUT_EVENT e); }; |