Ejemplo n.º 1
0
        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
                    { }
                }));
            }
        }
Ejemplo n.º 2
0
 /// <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) { }
Ejemplo n.º 3
0
 public MoveEventArgs(Point3D coordinates, InputDeviceButton button) => throw null;