TwclWiiRemoteClientConnection Class
The virtual connection represents a Wii Remote client.
wclConnections.TwclCustomConnection
wclConnections.TwclClientConnection
wclBluetooth.TwclWiiRemoteClientConnection
wclBluetooth.TwclWiiRemoteHidClientConnection
type TwclWiiRemoteClientConnection = class(TwclClientConnection) end;
The TwclWiiRemoteClientConnection type exposes the following members.
Name | Description | |
---|---|---|
AccelEnabled | Gets the current accelerometer status. | |
Address | Gets a remote device MAC address. | |
DisconnectEvent | Gets the disconnect event object. | |
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 connection owner. | |
Receiver | Gets the connection message receiver object. (Inherited from TwclCustomConnection.) | |
Rumble | Gets the current Rumble status. | |
State | Gets the connection state. (Inherited from TwclClientConnection.) | |
ThreadId | Gets the connection's thread ID. (Inherited from TwclCustomConnection.) | |
Timeout | Gets the connect timeout value. (Inherited from TwclClientConnection.) |
Name | Description | |
---|---|---|
Connect(Int64,Cardinal) | Connects to a remote device. | |
DisableAccel | Disables accelerometer. | |
Disconnect | Disconnects from the connected remote device. (Inherited from TwclClientConnection.) | |
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 connection's critical section. (Inherited from TwclCustomConnection.) | |
GetStatus | Requests the Wii Remote status. | |
HalCommunicate(THandle) | Implements a hardware-dependent code that communicate with the connected remote device. (Inherited from TwclClientConnection.) | |
HalConnect(THandle) | Implements a hardware-dependent code that connects to a remote device. (Overrides TwclClientConnection.HalConnect(THandle).) | |
HalDisconnect | Implements a hardware-dependent code that disconnects from the connected remote device. (Overrides TwclClientConnection.HalDisconnect.) | |
HalWrite(PByte,Byte) | Implements a hardware-dependent code that writes data report to the connected Wii Remote controller. | |
InternalDisconnect(Integer) | The internal disconnect method. Disconnects from a connected remote device. (Inherited from TwclClientConnection.) | |
Leave | Exists *leaves) the connection's critical section. (Inherited from TwclCustomConnection.) | |
MessageReceived(TwclMessage) | The method called when a new notification message received. (Overrides TwclClientConnection.MessageReceived(TwclMessage).) | |
NotifyClosed(Integer) | Send a Disconnect notification message. (Inherited from TwclClientConnection.) | |
ProcessReport(PByte) | The function parses the received report. | |
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). (Inherited from TwclClientConnection.) | |
OnDisconnect | The event fires when the remote connected device has been disconnected. (Inherited from TwclClientConnection.) | |
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. |
The class provides methods to receive data from the Wii Remote controller.
An application must never create instances of this class directly. Instead of that an application must use related methods from the TwclBluetoothRadio object.
The feature is supported only on Windows 10 platform with Microsoft Bluetooth drivers.