remapping the keyboard joystick
Posted: Sun Jan 29, 2023 8:50 am
The joystick_get routine allows us to use the keyboard as joystick 0 by passing 0 in the accumulator. The current mapping of SNES button to keyboard key is
Is there any way to re-map this in software, or can it be changed in the ROM? Say, using XDAW for ABXY and / and right shift to L and R, or using WASD for the D Pad and Q and R for L and R, and MLJI for ABXY. Or any other mapping the user might want. Then we could treat any arbitrary mapping of the keyboard as JOY0, even allowing the end user to map it themselves.
Code: Select all
SNES Button Keyboard Key Alt. Keyboard Key
A X Left Ctrl
B Z Left Alt
X S
Y A
L D
R C
START Enter
SELECT Left Shift
D-Pad Cursor Keys