| u8 JSX_Detect( |
| ) |
Detect JSX device in the given port.
| port enum INPUT_PORT | Input port to detect (INPUT_PORT1 or INPUT_PORT2). |
JSX device ID.
7 6 5 4 3 2 1 0
–-–-–-–-–-–-–-–--
0 0 A A A A B B
│ │ │ │ └─┴── Number of button rows (0-3)
└─┴─┴─┴────── Number of axis (0-15)
| u8 JSX_Read( |
| ) |
Read JSX device in the given port.
| port enum INPUT_PORT | Input port to read (INPUT_PORT1 or INPUT_PORT2). |
| buffer u8* | Buffer to store the input data. |
JSX device ID.
| inline u8 JSX_GetAxisNumber( |
| ) |
Get the number of axis from the given JSX device ID.
| id u8 | JSX device ID. |
Number of axis.
| inline u8 JSX_GetRowsNumber( |
| ) |
Get the number of button rows from the given JSX device ID.
| id u8 | JSX device ID. |
Number of button rows.
| inline u8 JSX_GetButtonsNumber( |
| ) |
Get the number of buttons from the given JSX device ID.
| id u8 | JSX device ID. |
Number of buttons.
| u8 JSXC_Detect( |
| ) |
Detect JSX device in the given port.
| port enum INPUT_PORT | Input port to detect (INPUT_PORT1 or INPUT_PORT2). |
JSX device ID.
7 6 5 4 3 2 1 0
–-–-–-–-–-–-–-–--
0 0 A A A A B B
│ │ │ │ └─┴── Number of button rows (0-3)
└─┴─┴─┴────── Number of axis (0-15)
| u8 JSXC_Read( |
| ) |
Read JSX device in the given port.
| port enum INPUT_PORT | Input port to read (INPUT_PORT1 or INPUT_PORT2). |
| buffer u8* | Buffer to store the input data. |
JSX device ID.