Skip to content

Commit

Permalink
tf??
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 2, 2024
1 parent f8567b2 commit b8cf348
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 @@ -165,7 +165,7 @@ class ControlsSubState extends ExtendableSubState {
if (Input.justPressed('any')) {
if (gamepadMode) {
var keyPressed:FlxGamepadInputID = gamepad.firstJustPressedID();
if (gamepad != null && keyPressed != -1) {
if (gamepad != null && keyPressed.toString() != FlxGamepadInputID.NONE) {
switch (curSelected) {
case 0:
SaveData.settings.gamepadBinds[0][0] = keyPressed;
Expand Down Expand Up @@ -193,7 +193,7 @@ class ControlsSubState extends ExtendableSubState {
}
} else {
var pressedKey = FlxG.keys.firstPressed();
if (pressedKey != null && pressedKey.toString() != FlxKey.NONE) {
if (pressedKey != null && pressedKey != -1) {
switch (curSelected) {
case 0:
SaveData.settings.keyboardBinds[0][0] = pressedKey;
Expand Down

0 comments on commit b8cf348

Please sign in to comment.