Laxkit  0.0.7.1
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
LaxWiimote Class Reference

Class to use Wiimotes from lax based programs. More...

List of all members.

Public Member Functions

virtual int IsOpen ()
virtual int Connect ()
 Discover and connect to a new Wiimote.
virtual int Update ()
 Return 0 on some kind of error, or 1 for success.
virtual int Rumble (int on)
 Turn on or off the rumble, or set to turn off after timer microseconds.
virtual int Leds (int mask)
 Set the leds, with bits 1-4.
virtual void Fps (int fps)
 Poll the wiimote this many times per second.
virtual int NextEvent (int *button, int *value)
 Return 1 if there was a next event, else 0.
void sleep ()

Public Attributes

int poll_time_microseconds

Protected Member Functions

void NewButtonEvent (int keysym, int value)

Protected Attributes

wiimote_t * m_p_wiimote
wiimote_t * m_p_wiimote_old
int number
ButtonQueueevents
ButtonQueueee
double ir_transform [16]

Detailed Description

Class to use Wiimotes from lax based programs.


Member Function Documentation

int LaxWiimote::Leds ( int  mask)
virtual

Set the leds, with bits 1-4.

Return 0 for success or 1 for error.

int LaxWiimote::Rumble ( int  on)
virtual

Turn on or off the rumble, or set to turn off after timer microseconds.

Return 0 for success or 1 for error.


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

Mon Feb 17 2014 11:52:58, Laxkit