TwclWiiRemoteClientConnection Class

The virtual connection represents a Wii Remote client.

Namespace: wclBluetooth
type
 TwclWiiRemoteClientConnection = class(TwclClientConnection)
 end;

The TwclWiiRemoteClientConnection type exposes the following members.

Show:
 NameDescription
Create(TwclBluetoothRadio)

Create new Wii Remote client connection.

Top
Show:
 NameDescription
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.)

Top
Show:
 NameDescription
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 OnAccelChanged event.

DoBalanceBoardChanged(TwclWiiRemoteBalanceBoard)

Fires the OnBalanceBoardChanged event

DoButtonsChanged(TwclWiiRemoteButtons)

Fires the OnButtonsChanged event.

DoClassicControllerChanged(TwclWiiRemoteClassicController)

Fires the OnClassicControllerChanged event.

DoConnect(Integer)

Fires the OnConnect event. (Overrides TwclClientConnection.DoConnect(Integer).)

DoDisconnect(Integer)

Fires the OnDisconnect event. (Overrides TwclClientConnection.DoDisconnect(Integer).)

DoDrumsChanged(TwclWiiRemoteDrums)

Fires the OnDrumsChanged event.

DoExtensionAttached

Fires the OnExtensionAttached event.

DoExtensionDetached

Fires the OnExtensionDetached event.

DoGuitarChanged(TwclWiiRemoteGuitar)

Fires the OnGuitarChanged event.

DoIrChanged(TwclWiiRemoteIrSensors)

Fires the OnIrChanged event.

DoNunchukChanged(TwclWiiRemoteNunchuk)

Fires the OnNunchukChanged event.

DoStatusChanged(Double,TwclWiiRemoteLeds)

Fires the OnStatusChanged event.

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.

Top
Show:
 NameDescription
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.

Top

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.