Get Ninja Tap information. NTap_Check function must be called first.
Number of usable joysticks and types. See NTap_Check.
7 6 5 4 3 2 1 0
│ │ │ │ └───┴───┴───┴── Nomber of joystick port available (2, 5 or 8)
│ │ └───┴────────────────── Tap type pluged in port 1 (0=No Tap, 1=Ninja Tap, 2=Shinobi Tap)
└────┴────────────────────────── Tap type pluged in port 2 (0=No Tap, 1=Ninja Tap, 2=Shinobi Tap)
Get total number of joystick port. NTap_Check function must be called first.
Number of usable joysticks. See NTap_Check.
Update the status of all joysticks whether they are connected to a Ninja Tap or directly to the port.
| inline u8 NTap_GetData( |
| ) |
Get the data of a given joystick according to its index. NTap_Update function must be called first.
| idx u8 | Joystick port index. For example, if the Ninja Tap is connected to port B, the first entry (index 0) will be the joystick connected directly to port A, while the next (index 1) will be the joystick connected to the first port of the Ninja Tap. |
State of the joystick. Bit set to 0 are triggered.
7 6 5 4 3 2 1 0
│ │ │ │ │ │ │ └── Right direction
│ │ │ │ │ │ └────── Left direction
│ │ │ │ │ └────────── Down direction
│ │ │ │ └────────────── Up direction
│ │ │ └────────────────── Start bouton (for NES pad)
│ │ └────────────────────── Select bouton (for NES pad)
│ └────────────────────────── A bouton
└─────────────────────────────── B bouton
| inline u8 NTap_IsPressed( |
| ) |
Check if the given bouton is pressed on the given joystick index NTap_Update function must be called first.
| idx u8 | Joystick port index. |
| btn u8 | Bouton value. Can be one of <NTAP_RIGHT>, <NTAP_LEFT>, <NTAP_DOWN>, <NTAP_UP>, <NTAP_START>, <NTAP_SELECT>, <NTAP_A> or <NTAP_B>. |
TRUE if button is currently pressed, FALSE otherwise.
| inline u8 NTap_IsPushed( |
| ) |
Check if the given bouton has just been pushed on the given joystick index NTap_Update function must be called first.
| idx u8 | Joystick port index. |
| btn u8 | Bouton value. See NTap_IsPressed. |
TRUE if button has just been pushed this frame, FALSE otherwise.
| inline u8 NTap_IsReleased( |
| ) |
Check if the given bouton has just been released on the given joystick index NTap_Update function must be called first.
| idx u8 | Joystick port index. |
| btn u8 | Bouton value. See NTap_IsPressed. |
TRUE if button has just been released this frame, FALSE otherwise.