UNPKG
node-red-contrib-dualshock
Version:
latest (0.0.1)
0.0.1
Node-RED node for PlayStation Dualshock 4 gamepad
github.com/CANDY-LINE/node-red-contrib-generic-ble
node-red-contrib-dualshock
/
examples
/
deviceDiscoveryHelpLinux.js
7 lines
(4 loc)
•
156 B
JavaScript
View Raw
1
2
3
4
5
6
7
var
joystick =
require
(
'joystick'
), controller =
new
joystick
(
0
,
256
,
500
); controller.
on
(
'button'
,
console
.
log
); controller.
on
(
'axis'
,
console
.
log
);