|
wiiuse
|
General wiimote operations. More...
#include "io.h"#include "os.h"#include "wiiuse_internal.h"#include <stdio.h>#include <stdlib.h>#include <string.h>
Functions | |
| const char * | wiiuse_version () |
| Returns the version of the library. | |
| void | wiiuse_set_output (enum wiiuse_loglevel loglevel, FILE *logfile) |
| Specify an alternate FILE stream for a log level. More... | |
| void | wiiuse_cleanup (struct wiimote_t **wm, int wiimotes) |
| Clean up wiimote_t array created by wiiuse_init() | |
| struct wiimote_t ** | wiiuse_init (int wiimotes) |
| Initialize an array of wiimote structures. More... | |
| void | wiiuse_disconnected (struct wiimote_t *wm) |
| The wiimote disconnected. More... | |
| void | wiiuse_rumble (struct wiimote_t *wm, int status) |
| Enable or disable the rumble. More... | |
| void | wiiuse_toggle_rumble (struct wiimote_t *wm) |
| Toggle the state of the rumble. More... | |
| void | wiiuse_set_leds (struct wiimote_t *wm, int leds) |
| Set the enabled LEDs. More... | |
| void | wiiuse_motion_sensing (struct wiimote_t *wm, int status) |
| Set if the wiimote should report motion sensing. More... | |
| int | wiiuse_set_report_type (struct wiimote_t *wm) |
| Set the report type based on the current wiimote state. More... | |
| int | wiiuse_read_data_cb (struct wiimote_t *wm, wiiuse_read_cb read_cb, byte *buffer, unsigned int addr, uint16_t len) |
| Read data from the wiimote (callback version). More... | |
| int | wiiuse_read_data (struct wiimote_t *wm, byte *buffer, unsigned int addr, uint16_t len) |
| Read data from the wiimote (event version). More... | |
| void | wiiuse_send_next_pending_read_request (struct wiimote_t *wm) |
| Send the next pending data read request to the wiimote. More... | |
| void | wiiuse_status (struct wiimote_t *wm) |
| Request the wiimote controller status. More... | |
| struct wiimote_t * | wiiuse_get_by_id (struct wiimote_t **wm, int wiimotes, int unid) |
| Find a wiimote_t structure by its unique identifier. More... | |
| int | wiiuse_write_data (struct wiimote_t *wm, unsigned int addr, const byte *data, byte len) |
| Write data to the wiimote. More... | |
| int | wiiuse_write_data_cb (struct wiimote_t *wm, unsigned int addr, byte *data, byte len, wiiuse_write_cb write_cb) |
| Write data to the wiimote (callback version). More... | |
| void | wiiuse_send_next_pending_write_request (struct wiimote_t *wm) |
| Send the next pending data write request to the wiimote. More... | |
| int | wiiuse_send (struct wiimote_t *wm, byte report_type, byte *msg, int len) |
| Send a packet to the wiimote. More... | |
| int | wiiuse_set_flags (struct wiimote_t *wm, int enable, int disable) |
| Set flags for the specified wiimote. More... | |
| float | wiiuse_set_smooth_alpha (struct wiimote_t *wm, float alpha) |
| Set the wiimote smoothing alpha value. More... | |
| void | wiiuse_set_bluetooth_stack (struct wiimote_t **wm, int wiimotes, enum win_bt_stack_t type) |
| Set the bluetooth stack type to use. More... | |
| void | wiiuse_set_orient_threshold (struct wiimote_t *wm, float threshold) |
| Set the orientation event threshold. More... | |
| void | wiiuse_set_accel_threshold (struct wiimote_t *wm, int threshold) |
| Set the accelerometer event threshold. More... | |
| void | wiiuse_wiiboard_use_alternate_report (struct wiimote_t *wm, int enabled) |
| Switch the Balance Board to use report 0x34 instead of 0x32. More... | |
| void | wiiuse_resync (struct wiimote_t *wm) |
| Try to resync with the wiimote by starting a new handshake. More... | |
| void | wiiuse_set_timeout (struct wiimote_t **wm, int wiimotes, byte normal_timeout, byte exp_timeout) |
| Set the normal and expansion handshake timeouts. More... | |
Variables | |
| FILE * | logtarget [4] |
| Output FILE stream for each wiiuse_loglevel. | |
General wiimote operations.
The file includes functions that handle general tasks. Most of these are functions that are part of the API.
1.8.13