Unity suggests to use this method to check if controllers get connected/removed
I`m trying this with a ps4 controller over bluetooth but if I turn the controller on/off nothing happens
InputSystem.onDeviceChange +=
(device, change) =>
{
switch (change)
{
case InputDeviceChange.Added:
controllerCount = "Added!";
break;
case InputDeviceChange.Disconnected:
controllerCount = "Disconnected!";
break;
case InputDeviceChange.Reconnected:
controllerCount = "Reconnected!";
break;
case InputDeviceChange.Removed:
controllerCount = "Removed!";
break;
default:
controllerCount = "Nothing happened!";
break;
}
};