summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/uiinput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/uiinput.h')
-rw-r--r--src/emu/uiinput.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/emu/uiinput.h b/src/emu/uiinput.h
index 2a7aeeff084..1504133b13d 100644
--- a/src/emu/uiinput.h
+++ b/src/emu/uiinput.h
@@ -78,6 +78,10 @@ public:
/* return true if a key down for the given user interface sequence is detected */
bool pressed(int code);
+ // enable/disable UI key presses
+ bool presses_enabled() const { return m_presses_enabled; }
+ void set_presses_enabled(bool enabled) { m_presses_enabled = enabled; }
+
/* return true if a key down for the given user interface sequence is detected, or if
autorepeat at the given speed is triggered */
bool pressed_repeat(int code, int speed);
@@ -104,6 +108,7 @@ private:
running_machine & m_machine; // reference to our machine
/* pressed states; retrieved with ui_input_pressed() */
+ bool m_presses_enabled;
osd_ticks_t m_next_repeat[IPT_COUNT];
u8 m_seqpressed[IPT_COUNT];