wiiuse
Public Attributes | List of all members
wiimote_t Struct Reference

Main Wiimote device structure. More...

#include <wiiuse.h>

Collaboration diagram for wiimote_t:
Collaboration graph
[legend]

Public Attributes

int unid
 user specified id
 
int state
 various state flags
 
byte leds
 currently lit leds
 
float battery_level
 battery level
 
int flags
 options flag
 
byte expansion_state
 the state of the expansion handshake
 
struct data_req_tdata_req
 list of data read requests
 
struct read_req_tread_req
 list of data read requests
 
struct accel_t accel_calib
 wiimote accelerometer calibration
 
struct expansion_t exp
 wiimote expansion device
 
struct vec3b_t accel
 current raw acceleration data
 
struct orient_t orient
 current orientation on each axis
 
struct gforce_t gforce
 current gravity forces on each axis
 
struct ir_t ir
 IR data.
 
uint16_t btns
 what buttons have just been pressed
 
uint16_t btns_held
 what buttons are being held down
 
uint16_t btns_released
 what buttons were just released this
 
float orient_threshold
 threshold for orient to generate an event
 
int32_t accel_threshold
 threshold for accel to generate an event
 
struct wiimote_state_t lstate
 last saved state
 
WIIUSE_EVENT_TYPE event
 type of event that occurred
 
byte motion_plus_id [6]
 
WIIUSE_WIIMOTE_TYPE type
 

Detailed Description

Main Wiimote device structure.

You need one of these to do pretty much anything with this library.


The documentation for this struct was generated from the following file: