private void DoTouchPad(InputTouchpadEventArgs e) { if (touchState == 0 && windowScanner.IsAttached) // Mouse Control { var x = e.touches[0].DeltaX; var y = e.touches[0].DeltaY; var curPos = Cursor.Position; if (x != lastTouchX) { curPos.X += x; lastTouchX = x; } if (y != lastTouchY) { curPos.Y += y; lastTouchY = y; } Cursor.Position = curPos; } }
private void Xbox360Driver_OnTouchpadMoved(InputTouchpadEventArgs e) { throw new NotImplementedException(); }