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

Overriding the default behaviours of the select and start button #3

Open
Langerz82 opened this issue Jan 30, 2017 · 1 comment
Open

Comments

@Langerz82
Copy link
Contributor

Langerz82 commented Jan 30, 2017

Hello,

Im using pxgamepad for a my game that runs in xbox one edge. It works almost flawlessly except for one issue. Is it possible to override the default behaviour of the select or start buttons so the system url navigator and the edge options dont kick in on Xbox one?
Thanks for the great API.

I tried searching the API but couldnt find anything on it:
https://msdn.microsoft.com/en-us/library/dn743630(v=vs.85).aspx

@joelfillmore
Copy link
Member

Hmm, not sure if that is possible. The Gamepad API doesn't function like other input events such as mouse or touch. Instead of firing events when buttons are pressed (similar to a click event for the mouse), we have to poll for button status. If there were button events, then I could imagine that you might be able to stop propagation of the event to change the default behavior (just like you can stop a mouse click from propagating). Let me know if you find a way to work around this!

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

No branches or pull requests

2 participants