You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.
I had a question regarding the GamePad controllers for react 360 and as to how it can be implemented. I've been experimenting with a SimpleGaze reticle and have a decent understanding of how to use the inputs. In the following file found here, is this an example GameControllerRayCaster for immediate use or is this just an example piece of code for guidance? GameControllerRayCaster.
Also in the documentation, I read that Input Handling can support out of the box an Xbox, Oculus Go, Oculus Touch, and Microsoft Mixed Reality controllers. However, in this piece of code, I found what looks to be more support for a variety of different controllers:
I can't tell between the documentation and the actual code if an xbox controller is supported (which is what I want). Can someone help clarify this for me. In addition, is the onInput handler the only thing that I need to support the xboxcontroller?
The text was updated successfully, but these errors were encountered:
In general, this mapping is to try converting the mapping of gamepad key id to button class used by React360. Those in the map are well known gamepad mappings. If the gamepad name doesn't match those, it will fallback to a standard mapping, which is the mapping for PS/XBOX controller. So for your question, xbox controller is supported because it's the standard mapping.
And for additional question, yes, onInput is the event sent to the view when cursor is pointing to the view and any key event happens on the gamepad. It will provide the button class provided by the mapping, it will also provide the original key id if you want to process your own gamepad input logic. If you just want basic input like "click", you can just use which will provide a onClick event.
I had a question regarding the GamePad controllers for react 360 and as to how it can be implemented. I've been experimenting with a SimpleGaze reticle and have a decent understanding of how to use the inputs. In the following file found here, is this an example GameControllerRayCaster for immediate use or is this just an example piece of code for guidance? GameControllerRayCaster.
Also in the documentation, I read that Input Handling can support out of the box an Xbox, Oculus Go, Oculus Touch, and Microsoft Mixed Reality controllers. However, in this piece of code, I found what looks to be more support for a variety of different controllers:
I can't tell between the documentation and the actual code if an xbox controller is supported (which is what I want). Can someone help clarify this for me. In addition, is the onInput handler the only thing that I need to support the xboxcontroller?
The text was updated successfully, but these errors were encountered: