Skip to content
StinkerB06 edited this page May 22, 2018 · 7 revisions

The default keymap allows 1 out of 4 players.

btn(id) function returns true if button is pressed in current frame,
btnp(id) if pressed in current and wasn't pressed in previous frame.

Here's a table that summarizes the ID's to interrogate:

Action P1 ID P2 ID P3 ID P4 ID
Up 0 8 16 24
Down 1 9 17 25
Left 2 10 18 26
Right 3 11 19 27
A 4 12 20 28
B 5 13 21 29
X 6 14 22 30
Y 7 15 23 31

The default keymapping for Player 1 is:

Action Key (QWERTY)
Up Up Arrow
Down Down Arrow
Left Left Arrow
Right Right Arrow
A Z
B X
X A
Y S
Clone this wiki locally