Functions |
|
| void | wiiuse_pressed_buttons (struct wiimote_t *wm, byte *msg) |
| Find what buttons are pressed. |
|
| void | handshake_expansion (struct wiimote_t *wm, byte *data, unsigned short len) |
| Handle the handshake data from the expansion device. |
|
| void | disable_expansion (struct wiimote_t *wm) |
| Disable the expansion device if it was enabled. |
|
The file includes functions that handle the events that are sent from the wiimote to us.
| void disable_expansion | ( | struct wiimote_t * | wm | ) |
Disable the expansion device if it was enabled.
| wm | A pointer to a wiimote_t structure. | |
| data | The data read in from the device. | |
| len | The length of the data block, in bytes. |
| void handshake_expansion | ( | struct wiimote_t * | wm, | |
| byte * | data, | |||
| unsigned short | len | |||
| ) |
Handle the handshake data from the expansion device.
| wm | A pointer to a wiimote_t structure. | |
| data | The data read in from the device. | |
| len | The length of the data block, in bytes. |
If the data is NULL then this function will try to start a handshake with the expansion.
| void wiiuse_pressed_buttons | ( | struct wiimote_t * | wm, | |
| byte * | msg | |||
| ) |
Find what buttons are pressed.
| wm | Pointer to a wiimote_t structure. | |
| msg | The message specified in the event packet. |
1.5.4