diff --git a/portprotonqt/main_window.py b/portprotonqt/main_window.py
index 404a13e..b5b7a5f 100644
--- a/portprotonqt/main_window.py
+++ b/portprotonqt/main_window.py
@@ -252,6 +252,10 @@ class MainWindow(QMainWindow):
GamepadType.XBOX: "xbox_view",
GamepadType.PLAYSTATION: "ps_share",
},
+ 'search': {
+ GamepadType.XBOX: "xbox_y",
+ GamepadType.PLAYSTATION: "ps_square",
+ },
}
return mappings.get(action, {}).get(gtype, "placeholder")
@@ -290,6 +294,7 @@ class MainWindow(QMainWindow):
("add_game", _("Add Game")),
("context_menu", _("Menu")),
("menu", _("Fullscreen")),
+ ("search", _("Search")),
]
keyboard_hints = [
@@ -402,7 +407,7 @@ class MainWindow(QMainWindow):
gtype = self.input_manager.gamepad_type
logger.debug("Updating control hints, gamepad connected: %s, type: %s", is_gamepad_connected, gtype.value)
- gamepad_actions = ['confirm', 'back', 'add_game', 'context_menu', 'menu']
+ gamepad_actions = ['confirm', 'back', 'add_game', 'context_menu', 'menu', 'search']
for container, icon_label, action in self.hintsLabels:
if action in gamepad_actions: # Gamepad hint
@@ -434,7 +439,6 @@ class MainWindow(QMainWindow):
# Update navigation buttons
self.updateNavButtons()
-
@Slot(list)
def on_games_loaded(self, games: list[tuple]):
self.game_library_manager.set_games(games)
diff --git a/portprotonqt/themes/standart/images/ps_square.svg b/portprotonqt/themes/standart/images/ps_square.svg
new file mode 100644
index 0000000..ef77746
--- /dev/null
+++ b/portprotonqt/themes/standart/images/ps_square.svg
@@ -0,0 +1 @@
+
diff --git a/portprotonqt/themes/standart/images/xbox_y.svg b/portprotonqt/themes/standart/images/xbox_y.svg
new file mode 100644
index 0000000..a8c13e0
--- /dev/null
+++ b/portprotonqt/themes/standart/images/xbox_y.svg
@@ -0,0 +1 @@
+