Skip to content

Commit c72f179

Browse files
committed
add extra functions to paddles
This theoretically should enable the Home and Disconnect buttons on the Steam Deck, even though we should still have comprehensive remapping functionality for completeness
1 parent 7b3351a commit c72f179

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rpi/ui/ui_sdl.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ void init_gamepad()
7676
button_map[SDL_CONTROLLER_BUTTON_DPAD_DOWN] = VANILLA_BTN_DOWN;
7777
button_map[SDL_CONTROLLER_BUTTON_DPAD_LEFT] = VANILLA_BTN_LEFT;
7878
button_map[SDL_CONTROLLER_BUTTON_DPAD_RIGHT] = VANILLA_BTN_RIGHT;
79+
button_map[SDL_CONTROLLER_BUTTON_PADDLE1] = VANILLA_BTN_HOME;
80+
button_map[SDL_CONTROLLER_BUTTON_PADDLE2] = VPI_ACTION_DISCONNECT;
81+
button_map[SDL_CONTROLLER_BUTTON_PADDLE3] = VPI_ACTION_SCREENSHOT;
82+
button_map[SDL_CONTROLLER_BUTTON_PADDLE4] = VPI_ACTION_TOGGLE_RECORDING;
7983
axis_map[SDL_CONTROLLER_AXIS_LEFTX] = VANILLA_AXIS_L_X;
8084
axis_map[SDL_CONTROLLER_AXIS_LEFTY] = VANILLA_AXIS_L_Y;
8185
axis_map[SDL_CONTROLLER_AXIS_RIGHTX] = VANILLA_AXIS_R_X;

0 commit comments

Comments
 (0)