From c045aa7a56be30bb8639cb73f3af9ac27160b3d8 Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Sat, 23 Aug 2025 20:31:22 +0500 Subject: [PATCH] fix(input_manager): correct button mappings for increase/decrease size actions Signed-off-by: Boris Yumankulov --- portprotonqt/input_manager.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/portprotonqt/input_manager.py b/portprotonqt/input_manager.py index e2c0736..6dcbf38 100644 --- a/portprotonqt/input_manager.py +++ b/portprotonqt/input_manager.py @@ -42,17 +42,17 @@ class MainWindowProtocol(Protocol): # https://github.com/torvalds/linux/blob/master/drivers/hid/hid-playstation.c # https://github.com/torvalds/linux/blob/master/drivers/input/joystick/xpad.c BUTTONS = { - 'confirm': {ecodes.BTN_SOUTH}, # A (Xbox) / Cross (PS) - 'back': {ecodes.BTN_EAST}, # B (Xbox) / Circle (PS) - 'add_game': {ecodes.BTN_NORTH}, # X (Xbox) / Triangle (PS) - 'prev_dir': {ecodes.BTN_WEST}, # Y (Xbox) / Square (PS) - 'prev_tab': {ecodes.BTN_TL}, # LB (Xbox) / L1 (PS) - 'next_tab': {ecodes.BTN_TR}, # RB (Xbox) / R1 (PS) - 'context_menu': {ecodes.BTN_START}, # Start (Xbox) / Options (PS) - 'menu': {ecodes.BTN_SELECT}, # Select (Xbox) / Share (PS) - 'guide': {ecodes.BTN_MODE}, # Xbox Button / PS Button - 'increase_size': {ecodes.ABS_RZ}, # RT (Xbox) / R2 (PS) - 'decrease_size': {ecodes.ABS_Z}, # LT (Xbox) / L2 (PS) + 'confirm': {ecodes.BTN_SOUTH}, # A (Xbox) / Cross (PS) + 'back': {ecodes.BTN_EAST}, # B (Xbox) / Circle (PS) + 'add_game': {ecodes.BTN_NORTH}, # X (Xbox) / Triangle (PS) + 'prev_dir': {ecodes.BTN_WEST}, # Y (Xbox) / Square (PS) + 'prev_tab': {ecodes.BTN_TL}, # LB (Xbox) / L1 (PS) + 'next_tab': {ecodes.BTN_TR}, # RB (Xbox) / R1 (PS) + 'context_menu': {ecodes.BTN_START}, # Start (Xbox) / Options (PS) + 'menu': {ecodes.BTN_SELECT}, # Select (Xbox) / Share (PS) + 'guide': {ecodes.BTN_MODE}, # Xbox Button / PS Button + 'increase_size': {ecodes.BTN_TR2}, # RT (Xbox) / R2 (PS) + 'decrease_size': {ecodes.BTN_TL2}, # LT (Xbox) / L2 (PS) } class InputManager(QObject):