mirror of
https://github.com/dyne/FreeJ.git
synced 2026-02-06 13:09:15 +01:00
22 lines
427 B
JavaScript
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);
|
|
}
|