xbmc
|
Handles device I/O. More...
Go to the source code of this file.
Functions | |
void | wiiuse_handshake (struct wiimote_t *wm, byte *data, unsigned short len) |
Get initialization data from the wiimote. More... | |
int | wiiuse_io_read (struct wiimote_t *wm) |
int | wiiuse_io_write (struct wiimote_t *wm, byte *buf, int len) |
Handles device I/O.
void wiiuse_handshake | ( | struct wiimote_t * | wm, |
byte * | data, | ||
unsigned short | len | ||
) |
Get initialization data from the wiimote.
When first called for a wiimote_t structure, a request is sent to the wiimote for initialization information. This includes factory set accelerometer data. The handshake will be concluded when the wiimote responds with this data.