Class Controller
Object
|
+--Controller
-
Direct Known Subclasses:
-
MouseController, JoystickController, TriggerController, ViMoController, WiiController, MidiController, KeyboardController
- class
Controller
This class is the parent class of all Controller and should
not be used directly.
General notes on all controllers:
- They will only be active as long as their js object is alive. If it runs out of scope or is deleted, the controller will be removed on the next gc() call.
- If the callback function returns 'true', the event is 'handled', dispatch ends.
- If the callback function returns 'false' or nothing, the pending event will be requeued to the next controller, if any.
- If a callback failed because of any script errors, the controller will be deactivated *). Use activate(true) to reenable.
) not true for Keyboardcontroller and MidiController
Defined in Controller.js
Constructor Summary |
Controller()
Virtual Controller
|
Method Summary |
bool
|
activate(<bool> new state)
de/activate the controller
If called with one parameter, it sets the state and returns the old state.
|
String
|
get_name()
get the name of the controller
(not implemented yet)
|
Controller
Controller()
activate
bool activate(<bool> new state)
de/activate the controller
If called with one parameter, it sets the state and returns the old state. Without parameters, it just returns the current status.
get_name
String get_name()
get the name of the controller
(not implemented yet)
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