#include
#include
#include
#include
#include
#include
#include
#include "definitions.h"
#include "wiiuse_internal.h"
#include "io.h"
Functions |
|
| static int | wiiuse_connect_single (struct wiimote_t *wm, char *address) |
| Connect to a wiimote with a known address. |
|
| int | wiiuse_find (struct wiimote_t **wm, int max_wiimotes, int timeout) |
| Find a wiimote or wiimotes. |
|
| int | wiiuse_connect (struct wiimote_t **wm, int wiimotes) |
| Connect to a wiimote or wiimotes once an address is known. |
|
| void | wiiuse_disconnect (struct wiimote_t *wm) |
| Disconnect a wiimote. |
|
| int | wiiuse_io_read (struct wiimote_t *wm) |
| int | wiiuse_io_write (struct wiimote_t *wm, byte *buf, int len) |
| int wiiuse_connect | ( | struct wiimote_t ** | wm, | |
| int | wiimotes | |||
| ) |
Connect to a wiimote or wiimotes once an address is known.
| wm | An array of wiimote_t structures. | |
| wiimotes | The number of wiimote structures in wm. |
| static int wiiuse_connect_single | ( | struct wiimote_t * | wm, | |
| char * | address | |||
| ) | [static] |
Connect to a wiimote with a known address.
| wm | Pointer to a wiimote_t structure. | |
| address | The address of the device to connect to. If NULL, use the address in the struct set by wiiuse_find(). |
| void wiiuse_disconnect | ( | struct wiimote_t * | wm | ) |
Disconnect a wiimote.
| wm | Pointer to a wiimote_t structure. |
| int wiiuse_find | ( | struct wiimote_t ** | wm, | |
| int | max_wiimotes, | |||
| int | timeout | |||
| ) |
Find a wiimote or wiimotes.
| wm | An array of wiimote_t structures. | |
| max_wiimotes | The number of wiimote structures in wm. | |
| timeout | The number of seconds before the search times out. |
1.5.4