From bfd9c8c343ca3d616ac54a633bd4fb282fa8d509 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sallai=20J=C3=B3zsef?= <jozsef@sallai.me>
Date: Sat, 6 Aug 2022 14:10:21 +0300
Subject: [PATCH] oops

---
 src/menu/controls_menu.rs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/menu/controls_menu.rs b/src/menu/controls_menu.rs
index 188c0cc..dde0d5e 100644
--- a/src/menu/controls_menu.rs
+++ b/src/menu/controls_menu.rs
@@ -907,6 +907,7 @@ impl ControlsMenu {
                     self.main.non_interactive = true;
                     *controller = new_menu_controller;
 
+                    self.selected_controller = ControllerType::Keyboard;
                     self.update_rebind_menu(state, ctx);
 
                     self.current = CurrentMenu::MainMenu;
@@ -927,6 +928,7 @@ impl ControlsMenu {
                     self.main.non_interactive = true;
                     *controller = new_menu_controller;
 
+                    self.selected_controller = ControllerType::Gamepad(idx as u32);
                     self.update_rebind_menu(state, ctx);
 
                     self.current = CurrentMenu::MainMenu;