|
libmsx
C library for MSX
|
Joystick / Joypad interface. More...
Collaboration diagram for Joystick / Joypad:Functions | |
| uint8_t | msx_GTSTCK (const uint8_t a) |
MSX BIOS : GTSTCK (00D5H / MAIN) | |
| uint8_t | msx_GTTRIG (const uint8_t a) |
MSX BIOS : GTTRIG (00D8H / MAIN) | |
Joystick / Joypad interface.
| uint8_t msx_GTSTCK | ( | const uint8_t | a | ) |
MSX BIOS : GTSTCK (00D5H / MAIN)
Get the status of the eight-way lever on the joystick or the arrow keys on the keyboard.
| a | joystick number
|
0 : center1 : north2 : north east3 : east4 : south east5 : south6 : south west7 : west8 : north west| uint8_t msx_GTTRIG | ( | const uint8_t | a | ) |
MSX BIOS : GTTRIG (00D8H / MAIN)
Get the status of the trigger button on the joystick or the SPACE key on the keyboard.
| a | trigger button number
|
0x00 : released0xFF : pressed