private void InvokeNewInputDeviceEvent(GenericInput input) { if (NewInputDevice != null) { NewInputDeviceEventArgs eventArgs = new NewInputDeviceEventArgs(input.DeviceInstanceId, input.DeviceName, input); NewInputDevice.Invoke(this, eventArgs); } }
private void InvokeNewInputDeviceEvent(String deviceId, GenericInput input) { if (NewInputDevice != null) { NewInputDeviceEventArgs eventArgs = new NewInputDeviceEventArgs(deviceId, input); NewInputDevice.Invoke(this, eventArgs); } }
private void inputManagerSync_NewInputDevice(object sender, NewInputDeviceEventArgs e) { HandleNewDevice(e.DeviceId, e.Input); }
private void inputManager_NewInputDevice(object sender, NewInputDeviceEventArgs e) { Console.WriteLine("New device: " + e.DeviceId); this.BeginInvoke(new NewInputDeviceHandler(inputManagerSync_NewInputDevice), this, e); }