| u8 JoyMega_Read3( |
| ) |
Read Megadrive 3-button joypad through JoyMega adapter
| port enum INPUT_PORT | The port to read (can be <INPUT_PORT1> or <INPUT_PORT2>) |
State of the buttons (0: pressed, 1: released)
7 6 5 4 3 2 1 0
–-–-–-–-–-–-–-–--
S A C B R L D U
│ │ │ │ │ │ │ └── Up
│ │ │ │ │ │ └──── Down
│ │ │ │ │ └────── Left
│ │ │ │ └──────── Right
│ │ │ └────────── Trigger B
│ │ └──────────── Trigger C
│ └────────────── Trigger A
└──────────────── Trigger Start
| u16 JoyMega_Read6( |
| ) |
Read Megadrive 6-button joypad through JoyMega adapter
| port enum INPUT_PORT | The port to read (can be <INPUT_PORT1> or <INPUT_PORT2>) |
State of the buttons (0: pressed, 1: released)
F E D C B A 9 8 | 7 6 5 4 3 2 1 0
–-–-–-–-–-–-–-–--–-–-–-–-–-–-–-–--–
x x x x M X Y Z S A C B R L D U
│ │ │ │ │ │ │ │ │ │ │ └── Up
│ │ │ │ │ │ │ │ │ │ └──── Down
│ │ │ │ │ │ │ │ │ └────── Left
│ │ │ │ │ │ │ │ └──────── Right
│ │ │ │ │ │ │ └────────── Trigger B
│ │ │ │ │ │ └──────────── Trigger C
│ │ │ │ │ └────────────── Trigger A
│ │ │ │ └──────────────── Trigger Start
│ │ │ └──────────────────── Trigger Z
│ │ └────────────────────── Trigger Y
│ └──────────────────────── Trigger X
└────────────────────────── Trigger Mode
| inline bool JoyMega_IsPressedUp( |
| ) |
Check if 'up' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedDown( |
| ) |
Check if 'down' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedLeft( |
| ) |
Check if 'left' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedRight( |
| ) |
Check if 'right' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedA( |
| ) |
Check if 'A' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedB( |
| ) |
Check if 'B' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedC( |
| ) |
Check if 'C' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedStart( |
| ) |
Check if 'start' button is pressed
| state u8 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 (lower part) |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedX( |
| ) |
Check if 'X' button is pressed
| state u16 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedY( |
| ) |
Check if 'Y' button is pressed
| state u16 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedZ( |
| ) |
Check if 'Z' button is pressed
| state u16 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 |
TRUE if the button is pressed
| inline bool JoyMega_IsPressedMode( |
| ) |
Check if 'mode' button is pressed
| state u16 | State of the joystick returned by JoyMega_Read3 or JoyMega_Read6 |
TRUE if the button is pressed