MouseZSpeed.htm 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>MouseZSpeed()</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. 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.
  21. </td>
  22. </tr>
  23. </table>
  24. <h1><a href=../2d_examples/MouseZSpeed.bb>Example</a></h1>
  25. <table>
  26. <tr>
  27. <td>
  28. Graphics 640, 480, 0, 2 <br />
  29. SetBuffer BackBuffer () <br />
  30. <br />
  31. Repeat <br />
  32. <br />
  33. Cls <br />
  34. <br />
  35. Select MouseZSpeed () <br />
  36. Case -1 <br />
  37. result$ = "Backwards" <br />
  38. Case 0 <br />
  39. ; result$ = "No movement" <br />
  40. Case 1 <br />
  41. result$ = "Forwards" <br />
  42. End Select <br />
  43. <br />
  44. Text 20, 10, "NOTE: MouseZSpeed () = 0 is not listed here, to avoid confusion!" <br />
  45. Text 20, 40, result$ <br />
  46. Flip <br />
  47. <br />
  48. Until KeyHit (1) <br />
  49. <br />
  50. End <br />
  51. </td>
  52. </tr>
  53. </table>
  54. <br>
  55. <a target=_top href=../index.htm>Index</a><br>
  56. <br>
  57. 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>
  58. </html>