func_input_mousez.rst 633 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. _func_input_mousez:
  2. ======
  3. MouseZ
  4. ======
  5. MouseZ -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. MouseZ()
  10. Get mouse wheel
  11. The mouse wheel value increments when the mouse wheel is rolled 'away' from the user, and
  12. decrements when the mouse wheel is rolled 'towards' the user.
  13. Parameters
  14. ==========
  15. Return Values
  16. =============
  17. Mouse wheel value
  18. Examples
  19. ========
  20. .. code-block:: blitzmax
  21. ' mousez.bmx
  22. ' prints mousez() the mousewheel position
  23. Graphics 640,480
  24. While Not keyhit(KEY_ESCAPE)
  25. cls
  26. drawtext "MouseZ()="+MouseZ(),0,0
  27. flip
  28. Wend
  29. See Also
  30. ========