MouseZ.htm 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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>MouseZ()</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. MouseZ returns the current position of the mouse wheel on a suitable mouse. It starts off at zero when your program begins. The value of MouseZ increases as you move the wheel away from you and decreases as you move it towards you.
  21. <br>
  22. <br>
  23. See also: <a class=small href=MouseX.htm>MouseX</a>, <a class=small href=MouseY.htm>MouseY</a>.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/MouseZ.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. Graphics 640, 480, 0, 2 <br />
  32. <br />
  33. SetBuffer BackBuffer () <br />
  34. <br />
  35. Repeat <br />
  36. Flip:Cls <br />
  37. Text 20, 20, "Mouse wheel position: " + MouseZ () <br />
  38. Until KeyHit (1) <br />
  39. <br />
  40. End
  41. </td>
  42. </tr>
  43. </table>
  44. <br>
  45. <a target=_top href=../index.htm>Index</a><br>
  46. <br>
  47. Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=MouseZ&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
  48. </html>