Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Help Wanted Priorities Input Device

Discussion in 'Input System' started by GaZnoDrone, May 15, 2020.

  1. GaZnoDrone

    GaZnoDrone

    Joined:
    Mar 3, 2015
    Posts:
    28
    I want to know priorities what input I need if it's present and set that, for example, I want to priorities XR input. if the system has keyboard, mouse, gamepad and a Vive/Oculus (any XR) setup I would like to set XR controls to the player as the device type.
    What's the best way to Identify the devices present, I can get all the devices connected.
    I can get the devices InputDevicesDetected = InputSystem.devices.ToArray();
    I have tried using device ID to identify but when u remove and reconnect the device the ID changes

    I am a little unclear on how to identify the device.
     
  2. GaZnoDrone

    GaZnoDrone

    Joined:
    Mar 3, 2015
    Posts:
    28
    or maybe identify what control scheme the device comes under so as to set that schema to the player?
     
    Last edited: May 15, 2020
unityunity