Skip to content

Commit

Permalink
improved gamepad basics text
Browse files Browse the repository at this point in the history
  • Loading branch information
phcarvalho committed Sep 3, 2024
1 parent d6bd8af commit f841447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/docs/tutorials/snake/handling-user-input.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ But first, you need to understand how WASM-4 handles user input.

## Gamepad Basics

WASM-4 provides 4 variables (one for each different Gamepad) that represent the current state of the respective gamepad. It contains a value `0` (zero) if nothing has been pressed; otherwise, it contains a sum of the directions pressed, based on the table below:
WASM-4 accepts up to 4 gamepads and provides 4 variables that represent the current state of this gamepads. It contains a value `0` (zero) if nothing has been pressed; otherwise, it contains a sum of the buttons pressed, based on the table below:

| Button | Value |
|----------|:-----:|
Expand Down

0 comments on commit f841447

Please sign in to comment.