Search Unity

Question 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