joystick rumble in linux ;)

This commit is contained in:
Jaromil
2009-11-07 12:28:48 +01:00
parent bcbcd78877
commit a4c73b60b7
5 changed files with 265 additions and 4 deletions
+6 -2
View File
@@ -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);