Simulating virtual InputDevice disconnect events

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.

Does anyone know the right event to queue?

So I have found DeviceLostEvent:

UnityEvent<PlayerInput> disconnectEvent = new PlayerInput.DeviceLostEvent();

I just don’t know how to queue this event for a particular device…

Also this doesn’t even work in InputTestFixtures since apparently it’s ‘unsafe context’:

InputEventPtr inputEventPtr = InputEventPtr.From(disconnectEvent);
InputSystem.QueueEvent(inputEventPtr);

How can I force device disconnects (and eventually reconnect) with virtual gamepads?
Any help would be much appreciated.

Is this not supported by the InputSystem?