public static void QueueConnectEvent(InputDevice device, double time = -1) { if (device == null) { throw new ArgumentNullException("device"); } if (device.id == InputDevice.kInvalidDeviceId) { throw new InvalidOperationException("Device has not been added"); } if (time < 0) { time = Time.time; } var inputEvent = ConnectEvent.Create(device.id, time); s_Manager.QueueEvent(ref inputEvent); }
public void SendConnectEvent() { ConnectEvent connect = ConnectEvent.Create(); connect.Send(); }