Пример #1
0
        internal DeviceLoopOperation(DeviceLoopOperationDelegate operation, bool blocking, HapticDevice dev)
        {
            if (operation == null)
                throw new ArgumentNullException("operation");

            this.operation = operation;
            this.blocking = blocking;
            this.device = dev;
        }
Пример #2
0
 private void MainForm_Load(object sender, EventArgs e)
 {
     mgr = DeviceManager.Instance;
     if (mgr.Count == 0)
     {
         MessageBox.Show("Diese Anwendung funktioniert nur, wenn Sie einen Novint Falcon an Ihren Computer angeschlossen haben. Stellen Sie sicher das dem so ist und die benötigten Treiber installiert sind! Starten Sie dann die Anwendung erneut", "Falcon nicht gefunden", MessageBoxButtons.OK);
         Close();
     }
     else
     {
         dev = mgr[0];
         UpdateDeviceDisplay();
     }
 }
Пример #3
0
 private bool TestOperation(HapticDevice device)
 {
     device.Force.Update();
     return true;
 }
Пример #4
0
 internal DeviceForce(HapticDevice dev)
 {
     this.device = dev;
     force = new double[3];
 }