Skip to content

Commit

Permalink
added gamepad binds (FunkinCrew#3934)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMadera authored and Kade-github committed Jan 17, 2025
1 parent 0334032 commit bf5f4be
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/funkin/input/Controls.hx
Original file line number Diff line number Diff line change
Expand Up @@ -983,6 +983,7 @@ class Controls extends FlxActionSet
Control.FREEPLAY_FAVORITE => getDefaultGamepadBinds(Control.FREEPLAY_FAVORITE),
Control.FREEPLAY_LEFT => getDefaultGamepadBinds(Control.FREEPLAY_LEFT),
Control.FREEPLAY_RIGHT => getDefaultGamepadBinds(Control.FREEPLAY_RIGHT),
Control.FREEPLAY_CHAR_SELECT => getDefaultGamepadBinds(Control.FREEPLAY_CHAR_SELECT),
Control.VOLUME_UP => getDefaultGamepadBinds(Control.VOLUME_UP),
Control.VOLUME_DOWN => getDefaultGamepadBinds(Control.VOLUME_DOWN),
Control.VOLUME_MUTE => getDefaultGamepadBinds(Control.VOLUME_MUTE),
Expand Down Expand Up @@ -1033,11 +1034,13 @@ class Controls extends FlxActionSet
case Control.CUTSCENE_ADVANCE:
return [A];
case Control.FREEPLAY_FAVORITE:
[FlxGamepadInputID.BACK]; // Back (i.e. Select)
return [Y]; // Back (i.e. Select)
case Control.FREEPLAY_LEFT:
[LEFT_SHOULDER];
return [LEFT_SHOULDER];
case Control.FREEPLAY_RIGHT:
[RIGHT_SHOULDER];
return [RIGHT_SHOULDER];
case Control.FREEPLAY_CHAR_SELECT:
return [X];
case Control.VOLUME_UP:
[];
case Control.VOLUME_DOWN:
Expand Down

0 comments on commit bf5f4be

Please sign in to comment.