rdepena / node-dualshock-controller

Eventing API layer over HID for the Sony DualShock 3 and DualShock 4 controllers
208 stars 46 forks source link

Testing Dualshock4 controller #70

Closed EdgarSun closed 7 years ago

EdgarSun commented 7 years ago

thank you for making this awesome package, I met a problem when directly testing the example:

Error: device with VID:1356 PID:1476 not found at new Controller (/home/pi/akita/node_modules/dualshock-controller/src/controller.js:143:29) at dualShock (/home/pi/akita/node_modules/dualshock-controller/src/dualshock.js:19:12) at Object. (/home/pi/akita/node-dualshock-controller/examples/test4.js:4:18) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16)

My controller is connected to raspbian via Bluetooth

EdgarSun commented 7 years ago

after testing via USB connection, it's still not work. I can get the device with node-hid.

screen shot 2017-06-20 at 2 55 21 pm
EdgarSun commented 7 years ago

Never mind, after switching to "dualShock4-alternate-driver.json" config, problem's been resolved!