summaryrefslogtreecommitdiffstats
path: root/src/emu/uiinput.h
diff options
context:
space:
mode:
author npwoods <npwoods@mess.org>2019-07-21 12:44:58 -0400
committer npwoods <npwoods@mess.org>2019-07-21 15:22:19 -0400
commitd580d86073c1d68f9abef809ff25a25487270cb5 (patch)
treea601439d207275d3554e0c3a7cd620b8ee4c3465 /src/emu/uiinput.h
parent5733eb5488409aaf9967b39c7c23468679496d9e (diff)
Added ui_input_manager::[set_]presses_enabled() and exposed to LUA
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];