How to read mouse wheel in windows 10

the question’s in the title - anyone know how to read the mouse wheel on a standard PC mouse. I see that the enticingly entitled GetMouseWheel doesn’t work in windows

cheesr Tom

Hi Tom,

the best way to do this would be to (ab)use KbQueues, which can record mouse axis motion, and sometimes as a 3rd axis also mouse wheel motion. This should work on Linux and Windows, but not macOS.

See MouseMotionRecordingDemo.m for a starter:
http://psychtoolbox.org/docs/MouseMotionRecordingDemo

-mario

thanks mario - seems to work (once I updated PTB - doh!). cheesr Tom