コード例 #1
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")));
 }
コード例 #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")));
 }
コード例 #3
0
 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)));
     }
 }
コード例 #4
0
ファイル: ScrollMessage.cs プロジェクト: kamiljano/PCRemote
 public ScrollMessage(MouseScroll.orientation o, sbyte value)
 {
     secondByte = o == MouseScroll.orientation.Horizontal ? (sbyte)2 : (sbyte)1;
     thirdByte = value;
 }