Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit faf696e

Browse files
committed
Fixed RPAD icon display in main window
1 parent 8451760 commit faf696e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

scc/gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
SCButtons.A, SCButtons.B, SCButtons.X, SCButtons.Y,
66
SCButtons.BACK, SCButtons.C, SCButtons.START,
77
SCButtons.LB, SCButtons.RB, SCButtons.LT, SCButtons.RT,
8-
SCButtons.STICKPRESS, SCButtons.RPAD, SCButtons.LPAD,
8+
SCButtons.STICKPRESS, SCButtons.LPAD, SCButtons.RPAD,
99
SCButtons.RGRIP, SCButtons.LGRIP
1010
)

scc/gui/daemon_manager.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,9 @@ def get_button_name(config, button):
467467
button = SCButtons.__members__[button]
468468
index = BUTTON_ORDER.index(button)
469469
name = ControllerManager.DEFAULT_ICONS[index]
470-
name = config['gui']['buttons'][index]
470+
btn_index = config['gui']['buttons'].index(name)
471+
if btn_index != -1:
472+
name = config['gui']['buttons'][btn_index]
471473
except: pass
472474
return name
473475

0 commit comments

Comments
 (0)