public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PCRemoteWP;component/controls/MouseController.xaml", System.UriKind.Relative));
     this.mousepad = ((PCRemoteWP.controls.MousePad)(this.FindName("mousepad")));
     this.scrollY = ((PCRemoteWP.controls.MouseScroll)(this.FindName("scrollY")));
     this.scrollX = ((PCRemoteWP.controls.MouseScroll)(this.FindName("scrollX")));
 }
Exemple #2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/PCRemoteWP;component/controls/MouseController.xaml", System.UriKind.Relative));
     this.mousepad = ((PCRemoteWP.controls.MousePad)(this.FindName("mousepad")));
     this.scrollY  = ((PCRemoteWP.controls.MouseScroll)(this.FindName("scrollY")));
     this.scrollX  = ((PCRemoteWP.controls.MouseScroll)(this.FindName("scrollX")));
 }
 public void processScrollEvent(MouseScroll.orientation o, MouseScroll.dir d)
 {
     Debug.WriteLine("Scroll Scroll: " + (o == MouseScroll.orientation.Horizontal ? "horizontal : " : "vertical : ") +
         (d == MouseScroll.dir.Minus ? "minus" : "plus"));
     lock (messageQueue)
     {
         messageQueue.Enqueue(new ScrollMessage(o, d == MouseScroll.dir.Plus ? (sbyte)MouseController.ScrollSensitivity : (sbyte)(-1 * MouseController.ScrollSensitivity)));
     }
 }
Exemple #4
0
 public ScrollMessage(MouseScroll.orientation o, sbyte value)
 {
     secondByte = o == MouseScroll.orientation.Horizontal ? (sbyte)2 : (sbyte)1;
     thirdByte = value;
 }