dxMouseZSpeed%()

Parameters

None.

Description

dxMouseZSpeed returns -1 if the mousewheel on a suitable mouse is being rolled backwards (towards user), 0 if it is not being moved, and 1 if it is being rolled forwards.

Example

Graphics 640, 480, 0, 2
dxSetBuffer dxBackBuffer ()

Repeat

dxCls

Select dxMouseZSpeed ()
Case -1
result$ = "Backwards"
Case 0
; result$ = "No movement"
Case 1
result$ = "Forwards"
End Select

dxText 20, 10, "NOTE: dxMouseZSpeed () = 0 is not listed here, to avoid confusion!"
dxText 20, 40, result$
dxFlip

Until dxKeyHit (1)

End

Index