Skip to content
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

No onTouchpadButtonStateChangedObservable when reading controller's touchpad value #3734

Closed
deltakosh opened this issue Feb 9, 2018 · 2 comments
Assignees
Milestone

Comments

@deltakosh
Copy link
Contributor

http://www.html5gamedevs.com/topic/35560-reading-controllers-touchpad-value/?tab=comments#comment-204187

@deltakosh
Copy link
Contributor Author

@deltakosh deltakosh changed the title No value when reading controller's touchpad value No onTouchpadButtonStateChangedObservable when reading controller's touchpad value Feb 12, 2018
@TrevorDev
Copy link
Contributor

TrevorDev commented Feb 13, 2018

It looks like everything is working as expected to me when I modified the PG to the following:
http://localhost:1338/Playground/index-local.html#M5XR49#16

"However, the onTouchpadButtonStateChangedObservable is still returning zero for the value btw. Is this actually expected ?"
I believe so. I think the value field maps to the pressed boolean on the button state and will be set to 1 when the trackpad is clicked. There is another boolean on the the state called touched which can be used to check for when it gets touched.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants