FreeJ scripting

Class WiiController

Object
   |
   +--Controller
         |
         +--WiiController

class WiiController
extends Controller


This documentation and the Wii is still under construction.However, this controller is already working.

The WiiController connects via bluetooth to a Nintendo wii remote controller.


Author: jaromil, chris
Defined in Controller.js


Constructor Summary
WiiController(<string> outdevice)
            Nintendo Wii remote control.
 
Method Summary
 bool callback acceleration(<int> x, <int> y, <int> z)
           Callback on accelleration changes
 bool connect(<string> bdaddr)
           Connect to wii.
 void toggle_accel(<bool> state)
           toggle acceleration data on/off
 void toggle_buttons(<bool> state)
           toggle button data on/off
 void toggle_led(<int> state)
           toggle led on/off
 void toggle_rumble(<bool> state)
           toggle rumble on/off
 
Methods inherited from class Controller
activate, get_name
 

Constructor Detail

WiiController

WiiController(<string> outdevice)

Method Detail

acceleration

bool callback acceleration(<int> x, <int> y, <int> z)

connect

bool connect(<string> bdaddr)

toggle_accel

void toggle_accel(<bool> state)

toggle_buttons

void toggle_buttons(<bool> state)

toggle_led

void toggle_led(<int> state)

toggle_rumble

void toggle_rumble(<bool> state)

FreeJ scripting

| FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.
Send inquiries & questions to dyne.org's hackers.
Documentation generated by JSDoc on Thu May 29 20:56:52 2008