From 2b53f91a1f24dfba2837b458177042efd48260cd Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sat, 30 Aug 2008 09:34:55 +0000 Subject: added the special binds again. console can now be accessed in the menus aswell --- src/game/client/components/binds.hpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/game/client/components/binds.hpp') 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); }; -- cgit 1.4.1