|
Bluetooth Framework C++ Edition
|
The class provides methods to communicate with Wii Remote controller. More...
#include <wclBluetooth.h>
Public Member Functions | |
| CwclWiiRemoteClient () | |
| Creates new Wii Remote client component. | |
| virtual | ~CwclWiiRemoteClient () |
| Frees the component. | |
| int | Connect (CwclBluetoothRadio *const Radio) |
| Starts connecting to a Wii Remote device. | |
| int | Disconnect () |
| Disconnects from the Wii Remote. | |
| int | GetStatus () |
| Requests the Wii Remote status. | |
| int | SetLeds (const wclWiiRemoteLeds &Leds) |
| Changes the Wii Remote LEDs state. | |
| int | SetLeds (const bool Led1, const bool Led2, const bool Led3, const bool Led4) |
| Changes the Wii Remote LEDs state. | |
| int | SetRumble (const bool TurnOn) |
| Turns the Rumble On and Off. | |
| int | EnableAccel () |
| Enables accelerometer. | |
| int | DisableAccel () |
| Disables accelerometer. | |
| int | SetIrSensitivity (const wclWiiRemoteIrSensitivity &Sensitivity) |
| Sets IR IR sensor sensitivity (and turns it ON or OFF). | |
| bool | GetAccelEnabled () const |
| Gets the current accelerometer status. | |
| __declspec (property(get=GetAccelEnabled)) bool AccelEnabled | |
| Gets the current accelerometer status. | |
| wclWiiRemoteExtension | GetExtension () const |
| Gets the current connected extension type. | |
| __declspec (property(get=GetExtension)) wclWiiRemoteExtension Extension | |
| Gets the current connected extension type. | |
| wclWiiRemoteIrMode | GetIrMode () const |
| Gets the current IR sensor mode. | |
| __declspec (property(get=GetIrMode)) wclWiiRemoteIrMode IrMode | |
| Gets the current IR sensor mode. | |
| wclWiiRemoteIrSensitivity | GetIrSensitivity () const |
| Gets the current IR sensor sensitivity. | |
| __declspec (property(get=GetIrSensitivity)) wclWiiRemoteIrSensitivity IrSensitivity | |
| Gets the current IR sensor sensitivity. | |
| wclWiiRemoteLeds | GetLeds () const |
| Gets the current LEDs state. | |
| __declspec (property(get=GetLeds)) wclWiiRemoteLeds Leds | |
| Gets the current LEDs state. | |
| CwclBluetoothRadio * | GetRadio () const |
| Gets the radio object used for connection. | |
| __declspec (property(get=GetRadio)) CwclBluetoothRadio *Radio | |
| Gets the radio object used for connection. | |
| bool | GetRumble () const |
| Gets the current Rumble status. | |
| __declspec (property(get=GetRumble)) bool Rumble | |
| Gets the current Rumble status. | |
| wclClientState | GetState () const |
| Gets the current client state. | |
| __declspec (property(get=GetState)) wclClientState State | |
| Gets the current client state. | |
| __int64 | GetAddress () const |
| Gets a target WiiRemote device's MAC address. | |
| void | SetAddress (const __int64 Address) |
| Sets a target WiiRemote device's MAC address. | |
| __declspec (property(get=GetAddress, put=SetAddress)) __int64 Address | |
| Gets and sets a target WiiRemote device's MAC address. | |
| unsigned long | GetTimeout () const |
| Gets the connect timeout value. | |
| void | SetTimeout (const unsigned long Timeout) |
| Sets the connect timeout value. | |
| __declspec (property(get=GetTimeout, put=SetTimeout)) unsigned long Timeout | |
| Gets and sets the connect timeout value. | |
| __event void | OnAccelChanged (void *Sender, const wclWiiRemoteAccel &Accel) |
| The event fires when the accelerometer state has been changed. | |
| __event void | OnBalanceBoardChanged (void *Sender, const wclWiiRemoteBalanceBoard &Board) |
| The event fires when the stat eof the Balance Board extension has been changed. | |
| __event void | OnButtonsChanged (void *Sender, const wclWiiRemoteButtons &Buttons) |
| The event fires when the buttons state of the Wii Remote controller has been changed. | |
| __event void | OnClassicControllerChanged (void *Sender, const wclWiiRemoteClassicController &Controller) |
| The event fires when a Classic Controller extension state has been changed. | |
| __event void | OnConnect (void *Sender, const int Error) |
| The event fires when a connection to a remote device has been completed (with or without success). | |
| __event void | OnDisconnect (void *Sender, const int Reason) |
| The event fires when the remote connected device has been disconnected. | |
| __event void | OnDrumsChanged (void *Sender, const wclWiiRemoteDrums &Drums) |
| The event fires when the Drums extension state has been changed. | |
| __event void | OnExtensionAttached (void *Sender) |
| The event fires when the extension is attached. | |
| __event void | OnExtensionDetached (void *Sender) |
| The event fires when the extension has been detached. | |
| __event void | OnGuitarChanged (void *Sender, const wclWiiRemoteGuitar &Guitar) |
| The event fires when the Guitar extension state has been changed. | |
| __event void | OnIrChanged (void *Sender, const wclWiiRemoteIrSensors &Ir) |
| The event fires when the IR sensor data has been changed. | |
| __event void | OnNunchukChanged (void *Sender, const wclWiiRemoteNunchuk &Nunchuk) |
| The event fires when the state of the Nunchuk extension has been changed. | |
| __event void | OnStatusChanged (void *Sender, const double Batt, const wclWiiRemoteLeds &Leds) |
| The event fires when the WeDo Remote status changed. | |
Public Member Functions inherited from CwclBluetoothComponent | |
| CwclBluetoothComponent () | |
| Creates a new component. | |
| virtual | ~CwclBluetoothComponent () |
| Frees the component. | |
Protected Member Functions | |
| virtual void | DoAccelChanged (const wclWiiRemoteAccel &Accel) |
Fire the OnAccelChanged event. | |
| virtual void | DoBalanceBoardChanged (const wclWiiRemoteBalanceBoard &Board) |
Fires the OnBalanceBoardChanged event. | |
| virtual void | DoButtonsChanged (const wclWiiRemoteButtons &Buttons) |
Fires the OnButtonsChanged event. | |
| virtual void | DoClassicControllerChanged (const wclWiiRemoteClassicController &Controller) |
Fires the OnClassicControllerChanged event. | |
| virtual void | DoConnect (const int Error) |
Fires the OnConnect event. | |
| virtual void | DoDisconnect (const int Reason) |
Fires the OnDisconnect event. | |
| virtual void | DoDrumsChanged (const wclWiiRemoteDrums &Drums) |
Fires the OnDrumsChanged event. | |
| virtual void | DoExtensionAttached () |
Fires the OnExtensionAttached event. | |
| virtual void | DoExtensionDetached () |
Fires the OnExtensionDetached event. | |
| virtual void | DoGuitarChanged (const wclWiiRemoteGuitar &Guitar) |
Fires the OnGuitarChanged event. | |
| virtual void | DoIrChanged (const wclWiiRemoteIrSensors &Ir) |
Fires the OnIrChanged event. | |
| virtual void | DoNunchukChanged (const wclWiiRemoteNunchuk &Nunchuk) |
Fires the OnNunchukChanged event. | |
| virtual void | DoStatusChanged (const double Batt, const wclWiiRemoteLeds &Leds) |
Fires the OnStatusChanged event. | |
Protected Member Functions inherited from CwclBluetoothComponent | |
| void | SetCopy (CwclCustomConnection *const NewConnection) |
| The method sets new copy of the current connection. | |
| CwclCriticalSection * | GetCS () const |
| Gets the critical section object. | |
| __declspec (property(get=GetCS)) CwclCriticalSection *CS | |
| Gets the critical section object. | |
The class provides methods to communicate with Wii Remote controller.