TwclWiiRemoteClient Class

The class provides methods to communicate with Wii Remote controller.

Namespace: wclBluetooth
TComponent
  wclBluetooth.TwclBluetoothComponent
    wclBluetooth.TwclWiiRemoteClient
type
 TwclWiiRemoteClient = class(TwclBluetoothComponent)
 end;

The TwclWiiRemoteClient type exposes the following members.

Show:
 NameDescription
Create(TComponent)

Creates new Wii Remote client component. (Overrides TwclBluetoothComponent.Create(TComponent).)

Destroy

Frees the component. (Overrides TwclBluetoothComponent.Destroy.)

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

Top
Show:
 NameDescription
Connect(TwclBluetoothRadio)

Starts connecting to a Wii Remote device.

DisableAccel

Disables accelerometer.

Disconnect

Disconnects from the Wii Remote.

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.

DoDisconnect(Integer)

Fires the OnDisconnect event.

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 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.

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).

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.

Top