From a2ce5e59b3f8209eb556e0365a676a439eba05f1 Mon Sep 17 00:00:00 2001 From: skymike03 Date: Wed, 20 Aug 2025 16:27:46 +0200 Subject: [PATCH] v1.9.8.8 add left/right binded to page up/down in game list --- ports/RGSX/config.py | 2 +- ports/RGSX/controls.py | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ports/RGSX/config.py b/ports/RGSX/config.py index 2c4924e..ead5ae8 100644 --- a/ports/RGSX/config.py +++ b/ports/RGSX/config.py @@ -4,7 +4,7 @@ import sys import logging # Version actuelle de l'application -app_version = "1.9.8.8" +app_version = "1.9.8.8." def get_application_root(): """Détermine le dossier de l'application de manière portable.""" diff --git a/ports/RGSX/controls.py b/ports/RGSX/controls.py index 0be65b1..60ff2f9 100644 --- a/ports/RGSX/controls.py +++ b/ports/RGSX/controls.py @@ -428,6 +428,13 @@ def handle_controls(event, sources, joystick, screen): config.repeat_start_time = 0 config.repeat_last_action = current_time config.needs_redraw = True + elif is_input_matched(event, "left"): + config.current_game = max(0, config.current_game - config.visible_games) + config.repeat_action = None + config.repeat_key = None + config.repeat_start_time = 0 + config.repeat_last_action = current_time + config.needs_redraw = True elif is_input_matched(event, "page_down"): config.current_game = min(len(games) - 1, config.current_game + config.visible_games) config.repeat_action = None @@ -435,6 +442,13 @@ def handle_controls(event, sources, joystick, screen): config.repeat_start_time = 0 config.repeat_last_action = current_time config.needs_redraw = True + elif is_input_matched(event, "right"): + config.current_game = min(len(games) - 1, config.current_game + config.visible_games) + config.repeat_action = None + config.repeat_key = None + config.repeat_start_time = 0 + config.repeat_last_action = current_time + config.needs_redraw = True elif is_input_matched(event, "filter"): config.search_mode = True config.search_query = ""