Skip to content

Commit

Permalink
plz
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 2, 2024
1 parent 976f9bd commit c52801f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/options/ControlsSubState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ class ControlsSubState extends ExtendableSubState {
if (gamepadMode) {
var keyPressed:FlxGamepadInputID = gamepad.firstJustPressedID();
if (gamepad != null && keyPressed.toString() != FlxGamepadInputID.NONE) {
SaveData.settings.gamepadBinds[Std.int(curSelected / 2 | 0)][curSelected % 2] = keyPressed;
SaveData.settings.gamepadBinds[Std.int(curSelected / 2)][curSelected % 2] = keyPressed;
}
} else {
var pressedKey = FlxG.keys.firstJustPressed();
if (pressedKey != -1) {
SaveData.settings.keyboardBinds[Std.int(curSelected / 2 | 0)][curSelected % 2] = pressedKey;
SaveData.settings.keyboardBinds[Std.int(curSelected / 2)][curSelected % 2] = pressedKey;
}
}
SaveData.saveSettings();
Expand Down

0 comments on commit c52801f

Please sign in to comment.