[quote=“janpf”]I tried poking around to see any differences: I wrote a small program that uses windows SetWindowsHookEx (1) function to listen to mouse wheel events, to compare the difference in the events that came from an attached mouse and the touchpad.
I saw 2 differences:
Touchpad: fine grained quantities in scrolling (in the MouseData parameter of the event)
Normal USB Mouse: scrolled 120 (whatever the unit is), which is defined as a WHEEL_DELTA constant, a special value that defines a mouse wheel “click”
Touchpad: Flags set to 0xFFFFFFFF – I think it indicates it is a generated signal, see LLMHF_INJECTED and LLMHF_LOWER_IL_INJECTED in (2).
USB Mouse: Flags set to 0
Not sure if any of those mattered, so I tried converting the touchpad mousewheel events to equivalent events (using SetInput, see (3)), with the delta set to 120 – I wasn’t able to change the flags though. But that didn’t help …
Actually the curious thing is that if Sublime Text is selected, the touchpad (not the usb mouse) wheel events seem to disappear – nothing is sent to the hook registered with SetWindowsHookEx. Go figure …
In any case I tried some different DPI’s: 149 still didn’t work. But with 130 the scrolling works (and the events are there), so I stuck with that.
(1) msdn.microsoft.com/en-us/librar … 44959.aspx
(2) msdn.microsoft.com/en-us/librar … 44970.aspx
(3) msdn.microsoft.com/en-us/librar … 46310.aspx[/quote]
I think maybe you should hook the pointer messages introduced in Windows 8.