1
0
Fork 0
mirror of https://github.com/notwa/mm synced 2024-05-18 13:23:23 -07:00

disable input-eating in cheat menu (broken)

This commit is contained in:
Connor Olding 2020-07-29 16:07:21 +02:00
parent e53a982589
commit d15ef1dfc2
2 changed files with 5 additions and 19 deletions

View File

@ -11,30 +11,16 @@ require "flag manager"
-- TODO: make OoT versions for most of these menus -- TODO: make OoT versions for most of these menus
--[[ control schemes: --[[ control scheme:
normal: (alt_input = false; eat_input = false)
L opens the menu
L selects menu items
D-Pad navigates up/down items and left/right through pages
alternate: (alt_input = true; eat_input = false)
L+R opens/closes the menu
L goes back a menu (or closes)
R selects menu items
L+Z hides the menu without closing (FIXME: interferes with back button)
D-Pad navigates
greedy: (alt_input = false; eat_input = true)
L opens/closes the menu L opens/closes the menu
while the menu is open, the game receives no inputs (while the menu is open, the game is paused)
D-Pad/Joystick/C-Buttons navigate through items and pages D-Pad/Joystick/C-Buttons navigate through items and pages
A select menu items A select menu items
B/R go back a menu (or closes) B/R go back a menu (or closes)
Z hides the menu without closing Z hides the menu without closing
TODO: joystick, a/b button etc
greedy alt: (alt_input = true; eat_input = true)
same as greedy but pauses the game while in menu
(enables run_while_paused)
--]] --]]
-- don't change these; the other modes are mostly broken:
local run_while_paused = true local run_while_paused = true
local alt_input = true local alt_input = true
local eat_input = true local eat_input = true

View File

@ -46,8 +46,8 @@ local function handle_eat_input(handle, ctrl, pressed)
ctrl.enter = ctrl.A ctrl.enter = ctrl.A
end end
joypad.set({}, 1) --joypad.set({}, 1)
joypad.setanalog({["X Axis"]=false, ["Y Axis"]=false}, 1) --joypad.setanalog({["X Axis"]=false, ["Y Axis"]=false}, 1)
end end
handle:update(ctrl, pressed) handle:update(ctrl, pressed)
end end