1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-22 13:42:47 +00:00
This commit is contained in:
Sallai József 2022-08-06 14:10:21 +03:00
parent 1883045f75
commit bfd9c8c343

View file

@ -907,6 +907,7 @@ impl ControlsMenu {
self.main.non_interactive = true; self.main.non_interactive = true;
*controller = new_menu_controller; *controller = new_menu_controller;
self.selected_controller = ControllerType::Keyboard;
self.update_rebind_menu(state, ctx); self.update_rebind_menu(state, ctx);
self.current = CurrentMenu::MainMenu; self.current = CurrentMenu::MainMenu;
@ -927,6 +928,7 @@ impl ControlsMenu {
self.main.non_interactive = true; self.main.non_interactive = true;
*controller = new_menu_controller; *controller = new_menu_controller;
self.selected_controller = ControllerType::Gamepad(idx as u32);
self.update_rebind_menu(state, ctx); self.update_rebind_menu(state, ctx);
self.current = CurrentMenu::MainMenu; self.current = CurrentMenu::MainMenu;