예제 #1
0
 public bool setMousehWheelCallback(MouseHWheel.MouseHWheelCallback cb)
 {
     if (cb == null)
     {
         return(false);
     }
     this.keyEnableSynaptic = RegistryManager.Instance.DefaultGuest.HScroll;
     if (this.keyEnableSynaptic != 1)
     {
         Logger.Info("Horizontal Mouse Wheel support is Disabled");
         return(false);
     }
     MouseHWheel.s_MouseHWheelCallback = new MouseHWheel.MouseHWheelCallback(cb.Invoke);
     try
     {
         if (!HDPlusModule.SetMouseHWheelCallback(MouseHWheel.s_MouseHWheelCallback))
         {
             Logger.Info("Horizontal scrolling disabled, no synaptic device found");
         }
         return(true);
     }
     catch (Exception ex)
     {
         Logger.Error("Continue with MouseHWheel error:");
         Logger.Error(ex.ToString());
     }
     return(false);
 }
예제 #2
0
 public MouseHWheel(MouseHWheel.MouseHWheelCallback cb)
 {
     this.setMousehWheelCallback(cb);
 }
예제 #3
0
 public static extern bool SetMouseHWheelCallback(MouseHWheel.MouseHWheelCallback func);