diff options
| author | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 09:28:31 +0000 |
|---|---|---|
| committer | Magnus Auvinen <magnus.auvinen@gmail.com> | 2008-08-30 09:28:31 +0000 |
| commit | dfe7cb157938a861636c2a4dc1e53dbabba03fec (patch) | |
| tree | 2ab3779239fed519cc907310608d25fdebda186a /src/game/client/components/menus.hpp | |
| parent | 9672fe674f6335318cf11855299679f9d94a619b (diff) | |
| download | zcatch-dfe7cb157938a861636c2a4dc1e53dbabba03fec.tar.gz zcatch-dfe7cb157938a861636c2a4dc1e53dbabba03fec.zip | |
fixed so that menus doesn't use inp_get_event. fixes the gui key binder
Diffstat (limited to 'src/game/client/components/menus.hpp')
| -rw-r--r-- | src/game/client/components/menus.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/client/components/menus.hpp b/src/game/client/components/menus.hpp index 4d45c65a..6caaa479 100644 --- a/src/game/client/components/menus.hpp +++ b/src/game/client/components/menus.hpp @@ -60,6 +60,11 @@ class MENUS : public COMPONENT int active_page; bool menu_active; vec2 mouse_pos; + + // TODO: this is a bit ugly but.. well.. yeah + enum { MAX_INPUTEVENTS = 32 }; + static INPUT_EVENT inputevents[MAX_INPUTEVENTS]; + static int num_inputevents; // for graphic settings bool need_restart; |