mirror of
https://github.com/dyne/FreeJ.git
synced 2026-06-16 12:59:33 +02:00
joystick rumble in linux ;)
This commit is contained in:
@@ -11,11 +11,15 @@ 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);
|
||||
}
|
||||
};
|
||||
|
||||
joy.init_rumble("/dev/input/event9");
|
||||
joy.rumble(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user