static void RaiseCaptureEvent(Contact contact, RoutedEvent routedEvent, DependencyObject source, long timestamp) { ContactEventArgs args = new ContactEventArgs(contact, timestamp); args.RoutedEvent = routedEvent; args.Source = source; MultitouchLogic.RaiseEvent(source, args); }
public MultitouchInputProvider(PresentationSource source) { this.source = source; contactsQueue = new Queue <RawMultitouchReport>(); inputManagerProcessInput = InputManagerProcessInput; contactHandler = new ContactHandler(((HwndSource)source).Handle); contactHandler.ContactMoved += HandleContact; contactHandler.ContactRemoved += HandleContact; contactHandler.NewContact += HandleContact; inputManager = InputManager.Current; multitouchLogic = MultitouchLogic.Current; }
public MultitouchInputProvider(PresentationSource source) { this.source = source; contactsQueue = new Queue<RawMultitouchReport>(); inputManagerProcessInput = InputManagerProcessInput; contactHandler = new ContactHandler(((HwndSource)source).Handle); contactHandler.ContactMoved += HandleContact; contactHandler.ContactRemoved += HandleContact; contactHandler.NewContact += HandleContact; inputManager = InputManager.Current; multitouchLogic = MultitouchLogic.Current; }
static void Dispatcher_ShutdownFinished(object sender, EventArgs e) { current = null; }
static void Dispatcher_ShutdownFinished(object sender, EventArgs e) { current = null; }
public void Initialize() { events.Clear(); multitouchLogic = MultitouchLogic.Current; }