New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add properties representing entities to controller objects #27
Comments
if you have to maintain these state objects then its a legitimate use case, note that I would not add the "analog" state to the buttons as it would conflict with the new hold state. |
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rwaldron
added a commit
to rwaldron/node-dualshock-controller
that referenced
this issue
Apr 23, 2014
…epenagh-27 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
rdepena
pushed a commit
that referenced
this issue
Apr 24, 2014
Add properties representing entities to controller objects. Closes gh-27
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For every non-trivial project that uses
dualShock
, that I'm currently working (3 on going) I find that I need to create state objects for the controller, eg:It would be nice if this was part of the controller object itself, which would reduce the above example to:
Each "entity" (button, analog stick, etc) should have a corresponding property on the controller object. Each button entity property would be an object that contained at least the following properties: state, value. Each analog entity property would contain axis value properties.
If this feature is desirable, I can provide a patch
The text was updated successfully, but these errors were encountered: