-
Notifications
You must be signed in to change notification settings - Fork 0
Joypad
Kannagi edited this page Nov 8, 2024
·
2 revisions
To read the joy pad, just read the variable: PCEDK_JOYPAD1
There is also pad1h, and from 1 to 4
Read PCEDK_JOYPAD1 :
PCEDK_JOYPAD_APCEDK_JOYPAD_BPCEDK_JOYPAD_STARTPCEDK_JOYPAD_SELECTPCEDK_JOYPAD_UPPCEDK_JOYPAD_DOWNPCEDK_JOYPAD_LEFTPCEDK_JOYPAD_RIGHT
Example:
if PCEDK_JOYPAD1 & PCEDK_JOYPAD_A
{
// code
}
if PCEDK_JOYPAD1 & PCEDK_JOYPAD_B
{
// code
}
PCEDK v0.2