-
Notifications
You must be signed in to change notification settings - Fork 5
Joypad
Kannagi edited this page Aug 30, 2024
·
6 revisions
To read the joy pad, just read the variable: SNDK_Joypad.pad1l
There is also pad1h
, and from 1 to 4
npad
only means when you press the key
pad
if you keep pressing the key
epad
if you release the key
Read padxh
:
SNDK_PAD_B
SNDK_PAD_X
SNDK_PAD_START
SNDK_PAD_SELECT
SNDK_PAD_UP
SNDK_PAD_DOWN
SNDK_PAD_LEFT
SNDK_PAD_RIGHT
Read padxl
:
SNDK_PAD_A
SNDK_PAD_Y
SNDK_PAD_L
SNDK_PAD_R
Example:
if SNDK_Joypad.npad1l & SNDK_PAD_A
{
// code
}
if SNDK_Joypad.npad1h & SNDK_PAD_B
{
// code
}
SNDK v0.3