summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2019-11-22 02:32:29 +1100
committer Vas Crabb <vas@vastheman.com>2019-11-22 02:32:29 +1100
commitc38f63c10afec9cd90ba48514a180344cb005762 (patch)
tree3d3d08054d1a5fa4ea35efc8a88b35a3226f27c1 /plugins
parent3c939b202f7f8f1942aa833a6a33adf0bc958718 (diff)
plugins/cheat, plugins/autofire: only time out input sequence entry if nothing is entered (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/autofire/autofire_menu.lua2
-rw-r--r--plugins/cheat/init.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/autofire/autofire_menu.lua b/plugins/autofire/autofire_menu.lua
index 1109bebe796..a880d1c5008 100644
--- a/plugins/autofire/autofire_menu.lua
+++ b/plugins/autofire/autofire_menu.lua
@@ -113,7 +113,7 @@ local function poll_for_hotkey()
input:seq_poll_start('switch')
local time = os.clock()
local clearmsg = true
- while (not input:seq_poll()) and (os.clock() < time + 1) do
+ while (not input:seq_poll()) and (input:seq_poll_modified() or (os.clock() < time + 1)) do
if input:seq_poll_modified() then
if not input:seq_poll_valid() then
manager:machine():popmessage(_("Invalid sequence entered"))
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index da1544a58d7..4c97c321d6b 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -537,7 +537,7 @@ function cheat.startplugin()
input:seq_poll_start("switch")
local time = os.clock()
local clearmsg = true
- while (not input:seq_poll()) and (os.clock() < time + 1) do
+ while (not input:seq_poll()) and (input.seq_poll_modified() or (os.clock() < time + 1)) do
if input:seq_poll_modified() then
if not input:seq_poll_valid() then
manager:machine():popmessage(_("Invalid sequence entered"))