Skip to content

Commit

Permalink
fix: update pressed state
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan-Crane committed Oct 22, 2024
1 parent 6fc8f5f commit 41a582d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class GamepadState {
analogInputs[event.key] = event.value;
break;
case KeyType.button:
buttonInputs[event.key] = event.value == 1;
buttonInputs[event.key] = event.value != 0;
break;
}
}
Expand Down

0 comments on commit 41a582d

Please sign in to comment.