WiiUse  0.14.2
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups Pages
wiimote Struct Reference

#include <wiiuse.h>

+ Collaboration diagram for wiimote:

Data Fields

WCONST int unid
WCONST int state
WCONST byte leds
WCONST float battery_level
WCONST int flags
WCONST byte expansion_state
WCONST struct data_req_tdata_req
WCONST struct read_req_tread_req
WCONST struct accel_t accel_calib
WCONST struct expansion_t exp
WCONST struct vec3b_t accel
WCONST struct orient_t orient
WCONST struct gforce_t gforce
WCONST struct ir_t ir
WCONST uint16_t btns
WCONST uint16_t btns_held
WCONST uint16_t btns_released
WCONST float orient_threshold
WCONST int32_t accel_threshold
WCONST struct wiimote_state_t lstate
WCONST WIIUSE_EVENT_TYPE event
WCONST byte motion_plus_id [6]
Linux-specific (BlueZ) members
WCONST char bdaddr_str [18]
WCONST bdaddr_t bdaddr
WCONST int out_sock
WCONST int in_sock
Windows-specific members
WCONST HANDLE dev_handle
WCONST OVERLAPPED hid_overlap
WCONST enum win_bt_stack_t stack
WCONST int timeout
WCONST byte normal_timeout
WCONST byte exp_timeout

Detailed Description

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

Definition at line 724 of file wiiuse.h.

Field Documentation

WCONST struct vec3b_t accel

current raw acceleration data

Definition at line 772 of file wiiuse.h.

WCONST struct accel_t accel_calib

wiimote accelerometer calibration

Definition at line 769 of file wiiuse.h.

WCONST int32_t accel_threshold

threshold for accel to generate an event

Definition at line 783 of file wiiuse.h.

WCONST float battery_level

battery level

Definition at line 758 of file wiiuse.h.

WCONST bdaddr_t bdaddr

bt address

Definition at line 731 of file wiiuse.h.

WCONST char bdaddr_str[18]

readable bt address

Definition at line 730 of file wiiuse.h.

WCONST uint16_t btns

what buttons have just been pressed

Definition at line 778 of file wiiuse.h.

WCONST uint16_t btns_held

what buttons are being held down

Definition at line 779 of file wiiuse.h.

WCONST uint16_t btns_released

what buttons were just released this

Definition at line 780 of file wiiuse.h.

WCONST struct data_req_t* data_req

list of data read requests

Definition at line 766 of file wiiuse.h.

WCONST HANDLE dev_handle

HID handle

Definition at line 740 of file wiiuse.h.

WCONST WIIUSE_EVENT_TYPE event

type of event that occurred

Definition at line 787 of file wiiuse.h.

WCONST struct expansion_t exp

wiimote expansion device

Definition at line 770 of file wiiuse.h.

WCONST byte exp_timeout

timeout for expansion handshake

Definition at line 745 of file wiiuse.h.

WCONST byte expansion_state

the state of the expansion handshake

Definition at line 765 of file wiiuse.h.

WCONST int flags

options flag

Definition at line 760 of file wiiuse.h.

WCONST struct gforce_t gforce

current gravity forces on each axis

Definition at line 774 of file wiiuse.h.

WCONST OVERLAPPED hid_overlap

overlap handle

Definition at line 741 of file wiiuse.h.

WCONST int in_sock

input socket

Definition at line 733 of file wiiuse.h.

WCONST struct ir_t ir

IR data

Definition at line 776 of file wiiuse.h.

WCONST byte leds

currently lit leds

Definition at line 757 of file wiiuse.h.

WCONST struct wiimote_state_t lstate

last saved state

Definition at line 785 of file wiiuse.h.

WCONST byte normal_timeout

normal timeout

Definition at line 744 of file wiiuse.h.

WCONST struct orient_t orient

current orientation on each axis

Definition at line 773 of file wiiuse.h.

WCONST float orient_threshold

threshold for orient to generate an event

Definition at line 782 of file wiiuse.h.

WCONST int out_sock

output socket

Definition at line 732 of file wiiuse.h.

WCONST struct read_req_t* read_req

list of data read requests

Definition at line 768 of file wiiuse.h.

WCONST enum win_bt_stack_t stack

type of bluetooth stack to use

Definition at line 742 of file wiiuse.h.

WCONST int state

various state flags

Definition at line 756 of file wiiuse.h.

WCONST int timeout

read timeout

Definition at line 743 of file wiiuse.h.

WCONST int unid

user specified id

Definition at line 725 of file wiiuse.h.


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