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);
        }
Esempio n. 2
0
        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;
		}
Esempio n. 4
0
 static void Dispatcher_ShutdownFinished(object sender, EventArgs e)
 {
     current = null;
 }
Esempio n. 5
0
		static void Dispatcher_ShutdownFinished(object sender, EventArgs e)
		{
			current = null;
		}
Esempio n. 6
0
		public void Initialize()
		{
			events.Clear();
			multitouchLogic = MultitouchLogic.Current;
		}