Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hardillb/node-red-node-joystick
https://github.com/hardillb/node-red-node-joystick
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hardillb/node-red-node-joystick
- Owner: hardillb
- License: apache-2.0
- Created: 2015-04-29T15:14:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-30T17:07:41.000Z (over 9 years ago)
- Last Synced: 2024-10-14T16:11:36.445Z (3 months ago)
- Language: JavaScript
- Size: 112 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
node-red-node-joystick
======================A Node-RED node that reads a specific
Venom USB gamepad.So far it's hardcoded to look for a gamepad made by DragonRise Inc. I'll look adding more if I get
time to see if the output is similar from other pads (and can actually get hold of them).Install
-------Run the following command in the root directory of your Node-RED install
npm install node-red-node-joystick
Usage
-----By default it outputs a **msg.payload** *object* on change of any joystick switch.
Alternatively if you set a bit mask it will instead output raw values as an *int* continuously whenever a non-zero value is detected.
Right joystick are bits 0-3, left joystick are bits 4-7, and the trigger type buttons are 8-15.