mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-07 10:21:31 +00:00
NUVIE: Fix input lag in Ultima 6 main menu
Make sure all queued events are handled between calls to canvas_update(). Decouples event polling rate from screen update rate. Fixes #11478 and #12697
This commit is contained in:
parent
327e749486
commit
0084aad823
@ -3057,14 +3057,16 @@ local function main_menu()
|
||||
|
||||
while true do
|
||||
canvas_update()
|
||||
input = input_poll(true)
|
||||
|
||||
if engine_should_quit() == 1 then
|
||||
return "Q"
|
||||
end
|
||||
|
||||
if input ~= nil then
|
||||
if input == 113 then --q quit
|
||||
while true do
|
||||
input = input_poll(true)
|
||||
if input == nil then
|
||||
break
|
||||
elseif input == 113 then --q quit
|
||||
return "Q"
|
||||
elseif input == 105 or input == 13 and g_menu_idx == 0 then --i
|
||||
selected_intro()
|
||||
@ -3157,7 +3159,6 @@ local function main_menu()
|
||||
end
|
||||
end
|
||||
end
|
||||
input = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user