Codecore Logo
Quick Search
»
Advanced Search »

Wii Remote Driver

RSS
The Wii Remote driver supports using a Nintendo Wii Remote as a remote control. All the Wii Remote buttons, LEDs, rumble and battery level are supported.

You do NOT need a Nintendo Wii, you only need a Wii Remote and a compatible bluetooth adapter. For ease of use you really would need the recharable battery pack and charging cradle for the use of the Wii Remote to be realistic since once the battery looses its charge you need to manually repair the Wii Remote with the PC.

You must first pair the Wii Remote with your PC using a bluetooth adapter. This driver uses the first Wii Remote that it finds paired to the pc.

The Wii Remote will not pair and communicate successfully with every Bluetooth device and stack.

To pair the Wii Remote with your PC:

  1. Start up your Bluetooth software and have it search for a device.
  2. Hold down the 1 and 2 buttons on the Wii Remote. You should see the LEDs at the bottom start flashing. Do not let go of these buttons until this procedure is complete.
  3. Wii Remotes should show up in the list of devices found as Nintendo RVL-CNT-01. If it's not there, start over and try again.
  4. Click Next to move your way through the wizard. If at any point you are asked to enter a security code or PIN, leave the number blank or click Skip. You do not need a PIN number.
  5. You may be asked which service to use from the Wii Remote. Select the keyboard/mouse/HID service if prompted (you should only see one service available).
  6. Finish the wizard.

Manufacturer: Nintendo

Primary Communications Port: BlueTooth


Configuration Settings

Events

Ready State Changed

The device's running and ready state changed.

Whenever Filter:

none

EventArgs:

  • Number NewValue : The new property value.
  • Number PreviousValue : The previous property value.

Button A Pressed

The Wii Remote's 'A' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button B Pressed

The Wii Remote's 'B' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Plus Pressed

The Wii Remote's '+' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Minus Pressed

The Wii Remote's '-' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Home Pressed

The Wii Remote's 'HOME' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button 1 Pressed

The Wii Remote's '1' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button 2 Pressed

The Wii Remote's '2' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Up Pressed

The Wii Remote's 'up' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Down Pressed

The Wii Remote's 'down' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Left Pressed

The Wii Remote's 'left' button was pressed.

Whenever Filter:

none

EventArgs:

none

Button Right Pressed

The Wii Remote's 'right' button was pressed.

Whenever Filter:

none

EventArgs:

none

Instance Properties

BatteryLevel

Gets The Wii Remote's battery level.

Accessibility : Read Only

Type: Number

DeviceDisplayName

The display name for this device.

Accessibility : Read Only

Type: String

DeviceStartTime

The date and time when this device was started.

Accessibility : Read Only

Type: DateTime

DeviceLifecycleStage

The current lifecycle stage of the device. The stages in order are: Pending Start, Starting, Running, Stopping

Accessibility : Read Only

Type: Number

DeviceIsRunningAndReady

Indicates if the device is ready for use, ie it is in the Running lifecycle stage and all properties are valid and all methods are ready to be used.

Accessibility : Read Only

Type: Boolean

Instance Methods

TurnOnLED ( Number )

Turn on a Wii Remote LED.

Syntax

void TurnOnLED( Number ledNumber )

Parameters

ledNumber : The number of the LED.

TurnOffLED ( Number )

Turn off a Wii Remote LED.

Syntax

void TurnOffLED( Number ledNumber )

Parameters

ledNumber : The number of the LED.

SetLEDs ( Boolean, Boolean, Boolean, Boolean )

Set the Wii Remote LEDs.

Syntax

void SetLEDs( Boolean lED1, Boolean lED2, Boolean lED3, Boolean lED4 )

Parameters

lED1 : Indicates if LED1 should be on.
lED2 : Indicates if LED2 should be on.
lED3 : Indicates if LED3 should be on.
lED4 : Indicates if LED4 should be on.

TurnOnRumble

Turn on a Wii Remote rumble.

Syntax

void TurnOnRumble( )

Parameters

none

TurnOffRumble

Turn off a Wii Remote rumble.

Syntax

void TurnOffRumble( )

Parameters

none

ToggleRumble

Toggle a Wii Remote rumble.

Syntax

void ToggleRumble( )

Parameters

none

SetPropertyForDuration ( String, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

SetPropertyForDuration ( String, Number, TimeSpan, Object, Object )

Sets a property for a duration of time and then sets the property to a subequent value asynchronously. This action returns after setting the first value and the timer and subsequent property set run in the background. Subsequent sets of the same property will reset the timer if the subsequent value has not yet been set. This is an advanced feature, be sure to set the property name correctly.

Syntax

void SetPropertyForDuration( String propertyName, Number arrayIndex, unknown duration, Object initialValue, Object finalValue )

Parameters

propertyName : The name of the property to set.
arrayIndex : The property's array index to set.
duration : The amount of time to wait after setting the initial value to set the subsequent value.
initialValue : The value to set the property to initially.
finalValue : The value to set the property to after the duration of time has passed.

Privacy Policy | Conditions Of Use

Copyright ©2014 Codecore Technologies, All rights reserved.