Ejemplo n.º 1
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)));
     }
 }
Ejemplo n.º 2
0
 public ScrollMessage(MouseScroll.orientation o, sbyte value)
 {
     secondByte = o == MouseScroll.orientation.Horizontal ? (sbyte)2 : (sbyte)1;
     thirdByte  = value;
 }