Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itaisteinherz/ds-examples
Various examples using the DualShock 4 controller
https://github.com/itaisteinherz/ds-examples
controller dualshock4 nodejs playstation
Last synced: about 2 months ago
JSON representation
Various examples using the DualShock 4 controller
- Host: GitHub
- URL: https://github.com/itaisteinherz/ds-examples
- Owner: itaisteinherz
- License: mit
- Created: 2017-07-26T18:29:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-07-05T06:19:39.000Z (over 3 years ago)
- Last Synced: 2023-03-03T18:24:32.277Z (almost 2 years ago)
- Topics: controller, dualshock4, nodejs, playstation
- Language: JavaScript
- Homepage:
- Size: 605 KB
- Stars: 9
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# ds-examples [![Build Status](https://travis-ci.org/itaisteinherz/ds-examples.svg?branch=master)](https://travis-ci.org/itaisteinherz/ds-examples)
> Various examples using the DualShock 4 controller
## Install
```
$ git clone https://github.com/itaisteinherz/ds-examples.git
$ cd ds-examples
$ yarn
```_Note that using npm instead of yarn currently fails because of [an issue with `node-hid`](https://github.com/node-hid/node-hid/issues/266) (I've already opened a PR to resolve this in `node-dualshock-controller` - [rdepena/node-dualshock-controller#82](https://github.com/rdepena/node-dualshock-controller/pull/82))._
## Usage
```
$ node index.js
```## Notes
### Running the different examples
If you connect the controller to your computer using bluetooth, you can only access the buttons and D-pads, which means you will only be able to run the `basic.js` example.
To run the rest of the examples (`flash.js`, `light.js`, `rumble.js` and `touchpad.js`), connect the controller to your computer using a micro-USB cable, which will allow you to access the touchpad, the main LED of the controller and its rumble motors.
## License
MIT © [Itai Steinherz](https://github.com/itaisteinherz)