Mac app enabling use of touchpad and buttons on Sony Wireless Controller (DualShock 4) as virtual mouse and keyboard
Very early days here! Here be dragons! Pre-alpha experiments
To run this little experiment, first connect a Sony DualShock4 controller via either USB or Bluetooth, then open this folder with node-webkit 0.8.6-osx-ia32. The trackpad on the controller should now control your mouse, including tap to click and press in button clicking, two finger vertical scrolling, and dragging by pressing in the trackpad button.
Todo before first beta release:
Ideas/Todo:
Looking for collaborators and contributors, especially ideas around trackpad multitouch api design, gesture classifiers and general data massaging to improve mapping of finger movements to mouse stuff. I'd also like to talk to any interested user interface designers on designing app interface.
=== Building Info === Native extensions (currently ffi, ref, in NodObjC, and node-hid under ds4) require rebuilding using nw-gyp (available in npm) to be compatible with node-webkit 0.8.6. To do this for node-hid for example:
cd node_modules/ds4/node_modules/node-hid nw-gyp rebuild --target=0.8.6
The binary components will then be rebuilt. This seems to require Xcode be installed to build on Mac, not just apple's terminal build tools.