In Windows, I'm used to have a windowed screen and a loop to check mouse events. I don't use the Mouse library, so I check these events :
#WM_LBUTTONDOWN, #WM_LBUTTONUP, #WM_RBUTTONDOWN, #WM_RBUTTONUP, #WM_MBUTTONDOWN, #WM_MBUTTONUP
And for the mouse wheel : #WM_MOUSEWHEEL, with the following code :
Code: Select all
Procedure.l MouseWheelDelta()
Define wz.l
wz = ((EventwParam() >> 16) & $FFFF)
ProcedureReturn -(wz/100)
EndProcedure
Code: Select all
If event = #WM_MOUSEWHEEL
If MouseWheelDelta() > -100
scrollUp = 1
ElseIf MouseWheelDelta() < -100
scrollDown = 1
EndIf
ElseIf scrollUp Or scrollDown
scrollUp = 0
scrollDown = 0
EndIf

