TwclWiiRemoteHidClientConnection Class

The virtual connection represents a Wii Remote HID client.

Namespace: wclBluetooth
TObject
  wclConnections.TwclCustomConnection
    wclConnections.TwclClientConnection
      wclBluetooth.TwclWiiRemoteClientConnection
        wclBluetooth.TwclWiiRemoteHidClientConnection
type
 TwclWiiRemoteHidClientConnection = class(TwclWiiRemoteClientConnection)
 end;

The TwclWiiRemoteHidClientConnection type exposes the following members.

Show:
 NameDescription
Create(TwclBluetoothRadio)

Create new Wii Remote HID client connection. (Overrides TwclWiiRemoteClientConnection.Create(TwclBluetoothRadio).)

Top
Show:
 NameDescription
AccelEnabled

Gets the current accelerometer status. (Inherited from TwclWiiRemoteClientConnection.)

Address

Gets a remote device MAC address. (Inherited from TwclWiiRemoteClientConnection.)

DisconnectEvent

Gets the disconnect event object. (Inherited from TwclWiiRemoteClientConnection.)

Extension

Gets the current connected extension type. (Inherited from TwclWiiRemoteClientConnection.)

IrMode

Gets the current IR sensor mode. (Inherited from TwclWiiRemoteClientConnection.)

IrSensitivity

Gets the current IR sensor sensitivity. (Inherited from TwclWiiRemoteClientConnection.)

Leds

Gets the current LEDs state. (Inherited from TwclWiiRemoteClientConnection.)

OnExtensionAttached

The event fires when the extension is attached. (Inherited from TwclWiiRemoteClientConnection.)

OnExtensionDetached

The event fires when the extension has been detached. (Inherited from TwclWiiRemoteClientConnection.)

Radio

Gets the connection owner. (Inherited from TwclWiiRemoteClientConnection.)

Receiver

Gets the connection message receiver object. (Inherited from TwclCustomConnection.)

Rumble

Gets the current Rumble status. (Inherited from TwclWiiRemoteClientConnection.)

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. (Inherited from TwclWiiRemoteClientConnection.)

DisableAccel

Disables accelerometer. (Inherited from TwclWiiRemoteClientConnection.)

Disconnect

Disconnects from the connected remote device. (Inherited from TwclClientConnection.)

DoAccelChanged(TwclWiiRemoteAccel)

Fire the OnAccelChanged event. (Inherited from TwclWiiRemoteClientConnection.)

DoBalanceBoardChanged(TwclWiiRemoteBalanceBoard)

Fires the OnBalanceBoardChanged event (Inherited from TwclWiiRemoteClientConnection.)

DoButtonsChanged(TwclWiiRemoteButtons)

Fires the OnButtonsChanged event. (Inherited from TwclWiiRemoteClientConnection.)

DoClassicControllerChanged(TwclWiiRemoteClassicController)

Fires the OnClassicControllerChanged event. (Inherited from TwclWiiRemoteClientConnection.)

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. (Inherited from TwclWiiRemoteClientConnection.)

DoExtensionAttached

Fires the OnExtensionAttached event. (Inherited from TwclWiiRemoteClientConnection.)

DoExtensionDetached

Fires the OnExtensionDetached event. (Inherited from TwclWiiRemoteClientConnection.)

DoGuitarChanged(TwclWiiRemoteGuitar)

Fires the OnGuitarChanged event. (Inherited from TwclWiiRemoteClientConnection.)

DoIrChanged(TwclWiiRemoteIrSensors)

Fires the OnIrChanged event. (Inherited from TwclWiiRemoteClientConnection.)

DoNunchukChanged(TwclWiiRemoteNunchuk)

Fires the OnNunchukChanged event. (Inherited from TwclWiiRemoteClientConnection.)

DoStatusChanged(Double,TwclWiiRemoteLeds)

Fires the OnStatusChanged event. (Inherited from TwclWiiRemoteClientConnection.)

EnableAccel

Enables accelerometer. (Inherited from TwclWiiRemoteClientConnection.)

Enter

Enters the connection's critical section. (Inherited from TwclCustomConnection.)

GetStatus

Requests the Wii Remote status. (Inherited from TwclWiiRemoteClientConnection.)

HalCommunicate(THandle)

Communicates with the Wii Remote as with HID device. (Overrides TwclClientConnection.HalCommunicate(THandle).)

HalConnect(THandle)

Connects to the Wii Remote as to HID device. (Overrides TwclWiiRemoteClientConnection.HalConnect(THandle).)

HalDisconnect

Disconnects from the Wii Remote as from HID device. (Overrides TwclWiiRemoteClientConnection.HalDisconnect.)

HalWrite(PByte,Byte)

Sends data to the Wii Remote as to HID device. (Overrides TwclWiiRemoteClientConnection.HalWrite(PByte,Byte).)

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. (Inherited from TwclWiiRemoteClientConnection.)

SetIrSensitivity(TwclWiiRemoteIrSensitivity)

Sets IR IR sensor sensitivity (and turns it ON or OFF). (Inherited from TwclWiiRemoteClientConnection.)

SetLeds(Boolean,Boolean,Boolean,Boolean)

Overloaded. Changes the Wii Remote LEDs state. (Inherited from TwclWiiRemoteClientConnection.)

SetLeds(TwclWiiRemoteLeds)

Overloaded. Changes the Wii Remote LEDs state. (Inherited from TwclWiiRemoteClientConnection.)

SetRumble(Boolean)

Turns the Rumble On and Off. (Inherited from TwclWiiRemoteClientConnection.)

Top
Show:
 NameDescription
OnAccelChanged

The event fires when the accelerometer state has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnBalanceBoardChanged

The event fires when the stat eof the Balance Board extension has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnButtonsChanged

The event fires when the buttons state of the Wii Remote controller has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnClassicControllerChanged

The event fires when a Classic Controller extension state has been changed. (Inherited from TwclWiiRemoteClientConnection.)

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. (Inherited from TwclWiiRemoteClientConnection.)

OnGuitarChanged

The event fires when the Guitar extension state has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnIrChanged

The event fires when the IR sensor data has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnNunchukChanged

The event fires when the state of the Nunchuk extension has been changed. (Inherited from TwclWiiRemoteClientConnection.)

OnStatusChanged

The event fires when the WeDo Remote status changed. (Inherited from TwclWiiRemoteClientConnection.)

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.