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); }
public MouseHWheel(MouseHWheel.MouseHWheelCallback cb) { this.setMousehWheelCallback(cb); }
public static extern bool SetMouseHWheelCallback(MouseHWheel.MouseHWheelCallback func);