void OnTouchUp(object sender, TouchEventArgs e) { grid.ReleaseTouchCapture(e.TouchDevice); _capturedTouchDevices.RemoveAll(td => td == e.TouchDevice); _currentTouchcode = _touchcodeAPI.Check(GetTouchpoints()); Redraw(); }
void OnTouchDown(object sender, TouchEventArgs e) { grid.CaptureTouch(e.TouchDevice); _capturedTouchDevices.Add(e.TouchDevice); _currentTouchcode = _touchcodeAPI.Check(GetTouchpoints()); Redraw(); }
public MainWindow() { InitializeComponent(); _touchcodeAPI = new TouchcodeAPI(); _currentTouchcode = Touchcode.None; _canvas = CreateTouchcodeVisualization(); canvas.Children.Add(_canvas); Redraw(); }
void OnTouchMove(object sender, TouchEventArgs e) { _currentTouchcode = _touchcodeAPI.Check(GetTouchpoints()); Redraw(); }