Hello,
I’ve read through the documentation but can’t seem to be able find how to ‘force’ the input system to disconnect a device.
I have a device:
gamepad2 = InputSystem.AddDevice<Gamepad>();
I’ve found you can queue events such as:
InputSystem.QueueEvent(DeviceRemoveEvent.Create(gamepad2.deviceId).ToEventPtr());
But this is removing a device, which one could do with: InputSystem.RemoveDevice(gamepad2);
I haven’t found anything about disconnecting.
I just want to disconnect (and eventually reconnect) my virtual gamepads for play testing purposes.
Help would be much appreciated.