TwclWiiRemoteClient Class
The class provides methods to communicate with Wii Remote controller.
type TwclWiiRemoteClient = class(TwclBluetoothComponent) end;
The TwclWiiRemoteClient type exposes the following members.
Name | Description | |
---|---|---|
Create(TComponent) | Creates new Wii Remote client component. (Overrides TwclBluetoothComponent.Create(TComponent).) | |
Destroy | Frees the component. (Overrides TwclBluetoothComponent.Destroy.) |
Name | Description | |
---|---|---|
AccelEnabled | Gets the current accelerometer status. | |
Address | Gets and sets a target WiiRemote device's MAC address. | |
Extension | Gets the current connected extension type. | |
IrMode | Gets the current IR sensor mode. | |
IrSensitivity | Gets the current IR sensor sensitivity. | |
Leds | Gets the current LEDs state. | |
OnExtensionAttached | The event fires when the extension is attached. | |
OnExtensionDetached | The event fires when the extension has been detached. | |
Radio | Gets the radio object used for connection. | |
Rumble | Gets the current Rumble status. | |
State | Gets the current client state. | |
Timeout | Gets and sets the connect timeout value. |
Name | Description | |
---|---|---|
Connect(TwclBluetoothRadio) | Starts connecting to a Wii Remote device. | |
DisableAccel | Disables accelerometer. | |
Disconnect | Disconnects from the Wii Remote. | |
DoAccelChanged(TwclWiiRemoteAccel) | Fire the | |
DoBalanceBoardChanged(TwclWiiRemoteBalanceBoard) | Fires the | |
DoButtonsChanged(TwclWiiRemoteButtons) | Fires the | |
DoClassicControllerChanged(TwclWiiRemoteClassicController) | Fires the | |
DoConnect(Integer) | Fires the | |
DoDisconnect(Integer) | Fires the | |
DoDrumsChanged(TwclWiiRemoteDrums) | Fires the | |
DoExtensionAttached | Fires the | |
DoExtensionDetached | Fires the | |
DoGuitarChanged(TwclWiiRemoteGuitar) | Fires the | |
DoIrChanged(TwclWiiRemoteIrSensors) | Fires the | |
DoNunchukChanged(TwclWiiRemoteNunchuk) | Fires the | |
DoStatusChanged(Double,TwclWiiRemoteLeds) | Fires the | |
EnableAccel | Enables accelerometer. | |
Enter | Enters the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
GetStatus | Requests the Wii Remote status. | |
Leave | Leaves the Bluetooth component protection critical section. (Inherited from TwclBluetoothComponent.) | |
SetCopy(TwclCustomConnection) | The method sets new copy of the current connection. (Inherited from TwclBluetoothComponent.) | |
SetIrSensitivity(TwclWiiRemoteIrSensitivity) | Sets IR IR sensor sensitivity (and turns it ON or OFF). | |
SetLeds(Boolean,Boolean,Boolean,Boolean) | Overloaded. Changes the Wii Remote LEDs state. | |
SetLeds(TwclWiiRemoteLeds) | Overloaded. Changes the Wii Remote LEDs state. | |
SetRumble(Boolean) | Turns the Rumble On and Off. |
Name | Description | |
---|---|---|
OnAccelChanged | The event fires when the accelerometer state has been changed. | |
OnBalanceBoardChanged | The event fires when the stat eof the Balance Board extension has been changed. | |
OnButtonsChanged | The event fires when the buttons state of the Wii Remote controller has been changed. | |
OnClassicControllerChanged | The event fires when a Classic Controller extension state has been changed. | |
OnConnect | The event fires when a connection to a remote device has been completed (with or without success). | |
OnDisconnect | The event fires when the remote connected device has been disconnected. | |
OnDrumsChanged | The evtn fires when the Drums extension state has been changed. | |
OnGuitarChanged | The event fires when the Guitar extension state has been changed. | |
OnIrChanged | The event fires when the IR sensor data has been changed. | |
OnNunchukChanged | The event fires when the state of the Nunchuk extension has been changed. | |
OnStatusChanged | The event fires when the WeDo Remote status changed. |