private void HandleDeviceRemoved(InputDevice device) { switch (device.role) { case InputDeviceRole.Generic: HeadsetNode.OnDisconnect(); break; case InputDeviceRole.LeftHanded: LeftHandNode.OnDisconnect(); break; case InputDeviceRole.RightHanded: RightHandNode.OnDisconnect(); break; default: break; } }
private void HandleDeviceUpdate(InputDevice device) { switch (device.role) { case InputDeviceRole.Generic: HeadsetNode.UpdateConnected(); break; case InputDeviceRole.LeftHanded: LeftHandNode.UpdateConnected(); break; case InputDeviceRole.RightHanded: RightHandNode.UpdateConnected(); break; default: break; } }