Skip to content

Commit d6cbd19

Browse files
[KERNAL] Clarify joystick_get Bit Values (#289)
* Clarify joystick_get Bit Values Distinguish SNES D-pad left/right and the shoulder buttons for joystick_get * retain L/R in table but with clarification --------- Co-authored-by: MooingLemur <mooinglemur@users.noreply.github.com>
1 parent ef143bd commit d6cbd19

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

X16 Reference - 05 - KERNAL.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1074,6 +1074,15 @@ Registers affected: .A .X .Y
10741074
.Y, byte 2:
10751075
$00 = joystick present
10761076
$FF = joystick not present
1077+
1078+
SEL = SELECT
1079+
STA = START
1080+
UP = D-PAD UP
1081+
DN = D-PAD DOWN
1082+
LT = D-PAD LEFT
1083+
RT = D-PAD RIGHT
1084+
L = LEFT SHOULDER BUTTON
1085+
R = RIGHT SHOULDER BUTTON
10771086
```
10781087

10791088
If a button is pressed, the corresponding bit is zero.
@@ -1088,8 +1097,8 @@ The keyboard joystick uses the standard SNES9X/ZSNES mapping:
10881097
| B | Z | Left Alt |
10891098
| X | S | |
10901099
| Y | A | |
1091-
| L | D | |
1092-
| R | C | |
1100+
| L (SHOULDER) | D | |
1101+
| R (SHOULDER) | C | |
10931102
| START | Enter | |
10941103
| SELECT | Left Shift | |
10951104
| D-Pad | Cursor Keys | |

0 commit comments

Comments
 (0)