Files
FreeJ/scripts/javascript/examples/joystick.js
2008-12-02 01:47:39 +01:00

22 lines
427 B
JavaScript

//
// freej joystick controller settings
// basic template by jaromil
//
joy = new JoystickController();
register_controller( joy );
joy.axismotion = function(which, axis, value) {
echo("joystick " + which +
" axis " + axis +
" value " + value);
}
joy.button = function (which, button, state) {
echo("joystick " + which +
" button " + button +
" state " + state);
}