05-19-2023, 12:51 AM
The _WHEEL function still does not seem to work for relative mouse movements? I thought this was one of the things that was addressed in v3.7.0. The code below is example #2 from the _WHEEL wiki page ( https://qb64phoenix.com/qb64wiki/index.php/WHEEL )
Code: (Select All)
ignore% = _MOUSEMOVEMENTX 'dummy call to put mouse into relative movement mode
PRINT "Move your mouse and/or your mouse wheel (ESC to exit)"
d% = _DEVICES 'always read number of devices to enable device input
DO
_LIMIT 30 'main loop
DO WHILE _DEVICEINPUT(2) 'loop only runs during a device 2 mouse event
PRINT _WHEEL(1), _WHEEL(2), _WHEEL(3)
LOOP
LOOP UNTIL INKEY$ = CHR$(27)
END