controls reset on F1

This commit is contained in:
Issac332 2026-06-28 12:52:07 +03:00
parent 4260f23b65
commit ededc0ca71

View file

@ -103,6 +103,13 @@ class Window_Settings
end
def update
if Input.key_press?(Input.key_from_name("F1"))
if Oneshot.msgbox(Oneshot::Msg::YESNO, tr("Are you sure you want to reset the control settings?"))
Settings.reset_controls!
@content.redraw_all
end
end
if self.visible
@content.update
end