private void EnvíaEvento(bool tentativo, bool cancelar) { InputDeviceButton button = InputDeviceButton.None; if (tentativo) { button = InputDeviceButton.Snap; } else if (cancelar) { button = InputDeviceButton.Cancel; } else if (botonDato.Checked) { button = InputDeviceButton.Data; } if (últimasCoordenadas != null) { BeginInvoke(new MethodInvoker(() => { try { Digi21.DigiNG.DigiNG.SendInputDeviceEvent( new Digi21.Math.Point3D( últimasCoordenadas[0], últimasCoordenadas[1], últimasCoordenadas[2]), button); } catch { } })); } }
/// <summary> /// Called when an input device button is pressed or released. /// </summary> /// <param name="button">The input device button.</param> public virtual void OnInputDeviceButton(InputDeviceButton button) { }
public MoveEventArgs(Point3D coordinates, InputDeviceButton button) => throw null;