diff options
Diffstat (limited to 'src/game/client/components/menus.hpp')
| -rw-r--r-- | src/game/client/components/menus.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/game/client/components/menus.hpp b/src/game/client/components/menus.hpp index 6332698f..bc733fb6 100644 --- a/src/game/client/components/menus.hpp +++ b/src/game/client/components/menus.hpp @@ -3,6 +3,18 @@ #include <game/client/component.hpp> #include <game/client/ui.hpp> + +// compnent to fetch keypresses, override all other input +class MENUS_KEYBINDER : public COMPONENT +{ +public: + bool take_key; + bool got_key; + INPUT_EVENT key; + MENUS_KEYBINDER(); + virtual bool on_input(INPUT_EVENT e); +}; + class MENUS : public COMPONENT { static vec4 gui_color; @@ -150,6 +162,8 @@ class MENUS : public COMPONENT void render_settings(RECT main_view); public: + static MENUS_KEYBINDER binder; + MENUS(); void render_loading(float percent); |