private static WindowsMouse GetMouse()
 {
     var resolver = new TestResolver();
     var window = resolver.Resolve<Window>();
     var screen = new QuadraticScreenSpace(window);
     var positionTranslater = new CursorPositionTranslater(window, screen);
     return new WindowsMouse(positionTranslater);
 }
Пример #2
0
 public XnaTouch(Window window, QuadraticScreenSpace screen)
 {
     TouchPanel.WindowHandle = window.Handle;
     IsAvailable = TouchPanel.GetCapabilities().IsConnected;
     touches = new TouchCollectionUpdater(screen);
 }
Пример #3
0
 public XnaMouse(Window window, QuadraticScreenSpace screen)
 {
     this.screen = screen;
     if (window != null)
         NativeMouse.WindowHandle = window.Handle;
 }