summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2017-07-14 13:20:46 -0500
committer cracyc <cracyc@users.noreply.github.com>2017-07-14 13:20:46 -0500
commit229959ee7df1fb8f7acb803d3cfa90b06f837e73 (patch)
tree5acfca72c65e4bfb6f2aeae8f09e00337f494c54 /plugins
parent1dc8a90131ea36633a6b68ab93f39fa2f00c1625 (diff)
plugins/cheat: popmessage for hotkey setting (nw)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/cheat/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 56da68dbc56..aa7bd0e406c 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -352,10 +352,14 @@ function cheat.startplugin()
local function hkcbfunc(cheat)
local input = manager:machine():input()
+ manager:machine():popmessage("Press button for hotkey or wait to clear")
+ manager:machine():video():frame_update(true)
input:seq_poll_start("switch")
local time = os.clock()
while (not input:seq_poll()) and (os.clock() < time + 1) do end
cheat.hotkeys = {pressed = false, keys = input:seq_poll_final()}
+ manager:machine():popmessage()
+ manager:machine():video():frame_update(true)
end
for num, cheat in ipairs(cheats) do