|
wiiuse
|
Functions | |
| void | wiiuse_pressed_buttons (struct wiimote_t *wm, byte *msg) |
| Find what buttons are pressed. More... | |
| void | handshake_expansion (struct wiimote_t *wm, byte *data, uint16_t len) |
| Handle the handshake data from the expansion device. More... | |
| void | disable_expansion (struct wiimote_t *wm) |
| Disable the expansion device if it was enabled. More... | |
| void | propagate_event (struct wiimote_t *wm, byte event, byte *msg) |
| Analyze the event that occurred on a wiimote. More... | |
| void | idle_cycle (struct wiimote_t *wm) |
| Called on a cycle where no significant change occurs. More... | |
| void | clear_dirty_reads (struct wiimote_t *wm) |
| Clear out all old 'dirty' read requests. More... | |
| void clear_dirty_reads | ( | struct wiimote_t * | wm | ) |
Clear out all old 'dirty' read requests.
| wm | Pointer to a wiimote_t structure. |
| 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. |
If the data is NULL then this function will try to start a handshake with the expansion.
| void handshake_expansion | ( | struct wiimote_t * | wm, |
| byte * | data, | ||
| uint16_t | 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. |
Tries to determine what kind of expansion was attached and invoke the correct handshake function.
If the data is NULL then this function will try to start a handshake with the expansion.
| void idle_cycle | ( | struct wiimote_t * | wm | ) |
Called on a cycle where no significant change occurs.
| wm | Pointer to a wiimote_t structure. |
| void propagate_event | ( | struct wiimote_t * | wm, |
| byte | event, | ||
| byte * | msg | ||
| ) |
Analyze the event that occurred on a wiimote.
| wm | Pointer to a wiimote_t structure. |
| event | The event that occurred. |
| msg | The message specified in the event packet. |
Pass the event to the registered event callback.
1.8.13