cancel
Showing results for 
Search instead for 
Did you mean: 

Identifying Connected Devices In Unity

patrick_bertold
Honored Guest
I want to have 2 relatively different control schemes, one for the Touch controllers and the other for the Xbox controller. I'm having difficulty figuring out which devices are connected and/or active. I have tried OVRInput.GetConnectedControllers() and OVRInput.GetActiveController() when the 3 devices are connected, but both return OVRInput.Controller.None. How should I be detecting these devices? I know Input.GetJoystickNames() returns the xbox controller, but I still want to know the status of the Touch controllers.
1 ACCEPTED SOLUTION

Accepted Solutions

Vortex
Protege
Execute a script at the beginning of the scene that listens to the capacitive buttons. They're only on touch, so you'll be able to know whether the player is holding an Xbox Controller or Touch.

View solution in original post

2 REPLIES 2

Vortex
Protege
Execute a script at the beginning of the scene that listens to the capacitive buttons. They're only on touch, so you'll be able to know whether the player is holding an Xbox Controller or Touch.

patrick_bertold
Honored Guest
Thank you, Vortex. That works for me.