Click or drag to resize

wclWiiRemoteClientConnection Class

The virtual connection represents a Wii Remote client.
Inheritance Hierarchy

Namespace: wclBluetooth
Assembly: wclBluetoothFramework (in wclBluetoothFramework.dll) Version: 7.17.12.0 (7.17.12.0)
Syntax
public abstract class wclWiiRemoteClientConnection : wclClientConnection

The wclWiiRemoteClientConnection type exposes the following members.

Constructors
 NameDescription
Public methodwclWiiRemoteClientConnection Create new Wii Remote client connection.
Top
Properties
 NameDescription
Public propertyAccelEnabled Gets the current accelerometer status.
Public propertyAddress Gets a remote device MAC address.
Protected propertyDisconnectEvent Gets the disconnect event object.
Public propertyExtension Gets the current connected extension type.
Public propertyIrMode Gets the current IR sensor mode.
Public propertyIrSensitivity Gets the current IR sensor sensitivity.
Public propertyLeds Gets the current LEDs state.
Public propertyRadio Gets the connection owner.
Public propertyReceiver Gets the connection message receiver object.
(Inherited from wclCustomConnection)
Public propertyRumble Gets the current Rumble status.
Public propertyState Gets the connection state.
(Inherited from wclClientConnection)
Public propertyThreadId Gets the connection's thread ID.
(Inherited from wclCustomConnection)
Public propertyTimeout Gets the connect timeout value.
(Inherited from wclClientConnection)
Top
Methods
 NameDescription
Public methodConnect(UInt32) Connects to a remote device.
(Inherited from wclClientConnection)
Public methodConnect(Int64, UInt32) Connects to a remote device.
Public methodDisableAccel Disables accelerometer.
Public methodDisconnect Disconnects from the connected remote device.
(Inherited from wclClientConnection)
Protected methodDoAccelChanged Fire the OnAccelChanged event.
Protected methodDoBalanceBoardChanged Fires the OnBalanceBoardChanged event
Protected methodDoButtonsChanged Fires the OnButtonsChanged event.
Protected methodDoClassicControllerChanged Fires the OnClassicControllerChanged event.
Protected methodDoConnect Fires the OnConnect event.
(Overrides wclClientConnectionDoConnect(Int32))
Protected methodDoDisconnect Fires the OnDisconnect event.
(Overrides wclClientConnectionDoDisconnect(Int32))
Protected methodDoDrumsChanged Fires the OnDrumsChanged event.
Protected methodDoExtensionAttached Fires the OnExtensionAttached event.
Protected methodDoExtensionDetached Fires the OnExtensionDetached event.
Protected methodDoGuitarChanged Fires the OnGuitarChanged event.
Protected methodDoIrChanged Fires the OnIrChanged event.
Protected methodDoNunchukChanged Fires the OnNunchukChanged event.
Protected methodDoStatusChanged Fires the OnStatusChanged event.
Public methodEnableAccel Enables accelerometer.
Protected methodEnter Enters the connection's critical section.
(Inherited from wclCustomConnection)
Public methodEqualsDetermines whether the specified Object is equal to the current Object.
(Inherited from Object)
Protected methodFinalize Frees the connection.
(Inherited from wclClientConnection)
Public methodGetHashCodeServes as a hash function for a particular type.
(Inherited from Object)
Public methodGetStatus Requests the Wii Remote status.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodHalCommunicate Implements a hardware-dependent code that communicate with the connected remote device.
(Inherited from wclClientConnection)
Protected methodHalConnect Implements a hardware-dependent code that connects to a remote device.
(Overrides wclClientConnectionHalConnect(IntPtr))
Protected methodHalDisconnect Implements a hardware-dependent code that disconnects from the connected remote device.
(Overrides wclClientConnectionHalDisconnect)
Protected methodHalWrite Implements a hardware-dependent code that writes data report to the connected Wii Remote controller.
Protected methodInternalDisconnect The internal disconnect method. Disconnects from a connected remote device.
(Inherited from wclClientConnection)
Protected methodLeave Exists *leaves) the connection's critical section.
(Inherited from wclCustomConnection)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodMessageReceived The method called when a new notification message received.
(Overrides wclClientConnectionMessageReceived(wclMessage))
Protected methodNotifyClosed Send a Disconnect notification message.
(Inherited from wclClientConnection)
Protected methodProcessReport The function parses the received report.
Public methodSetIrSensitivity Sets IR IR sensor sensitivity (and turns it ON or OFF).
Public methodSetLeds(wclWiiRemoteLeds) Changes the Wii Remote LEDs state.
Public methodSetLeds(Boolean, Boolean, Boolean, Boolean) Changes the Wii Remote LEDs state.
Public methodSetRumble Turns the Rumble On and Off.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventOnAccelChanged The event fires when the accelerometer state has been changed.
Public eventOnBalanceBoardChanged The event fires when the stat eof the Balance Board extension has been changed.
Public eventOnButtonsChanged The event fires when the buttons state of the Wii Remote controller has been changed.
Public eventOnClassicControllerChanged The event fires when a Classic Controller extension state has been changed.
Public eventOnConnect The event fires when a connection to a remote device has been completed (with or without success).
(Inherited from wclClientConnection)
Public eventOnDisconnect The event fires when the remote connected device has been disconnected.
(Inherited from wclClientConnection)
Public eventOnDrumsChanged The event fires when the Drums extension state has been changed.
Public eventOnExtensionAttached The event fires when the extension is attached.
Public eventOnExtensionDetached The event fires when the extension has been detached.
Public eventOnGuitarChanged The event fires when the Guitar extension state has been changed.
Public eventOnIrChanged The event fires when the IR sensor data has been changed.
Public eventOnNunchukChanged The event fires when the state of the Nunchuk extension has been changed.
Public eventOnStatusChanged The event fires when the WeDo Remote status changed.
Top
Remarks

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

The feature is supported only on Windows 10 platform with Microsoft Bluetooth drivers.

See Also