| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <html>
- <head>
- <title>Blitz3D Docs</title>
- <link rel=stylesheet href=../css/commands.css type=text/css>
- </head>
- <body>
- <h1>MouseZSpeed()</h1>
- <h1>Parameters</h1>
- <table>
- <tr>
- <td>
- None.
- </td>
- </tr>
- </table>
- <h1>Description</h1>
- <table>
- <tr>
- <td>
- MouseZSpeed 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.
- </td>
- </tr>
- </table>
- <h1><a href=../2d_examples/MouseZSpeed.bb>Example</a></h1>
- <table>
- <tr>
- <td>
- Graphics 640, 480, 0, 2
<br />
- SetBuffer BackBuffer ()
<br />
-
<br />
- Repeat
<br />
-
<br />
- Cls
<br />
-
<br />
- Select MouseZSpeed ()
<br />
- Case -1
<br />
- result$ = "Backwards"
<br />
- Case 0
<br />
- ; result$ = "No movement"
<br />
- Case 1
<br />
- result$ = "Forwards"
<br />
- End Select
<br />
-
<br />
- Text 20, 10, "NOTE: MouseZSpeed () = 0 is not listed here, to avoid confusion!"
<br />
- Text 20, 40, result$
<br />
- Flip
<br />
-
<br />
- Until KeyHit (1)
<br />
-
<br />
- End
<br />
- </td>
- </tr>
- </table>
- <br>
- <a target=_top href=../index.htm>Index</a><br>
- <br>
- Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=MouseZSpeed&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
- </html>
|