Search Unity

Question InputUser.pairedDevices return 0 after DeviceRegainedEvent?

Discussion in 'Input System' started by CDF, Jan 12, 2023.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    So I'm listening to PlayerInput.onDeviceRegained event. Inside the callback I'm trying to iterate over the PlayerInputs devices (which is just a reference to InputUser.pairedDevices)

    But it's returning no devices.

    How can I get the devices a user has after one was regained?