func_input_mousey.rst 559 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. .. _func_input_mousey:
  2. ======
  3. MouseY
  4. ======
  5. MouseY -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. MouseY()
  10. Get mouse y location
  11. The returned value is relative to the top of the screen.
  12. Parameters
  13. ==========
  14. Return Values
  15. =============
  16. Mouse y axis location
  17. Examples
  18. ========
  19. .. code-block:: blitzmax
  20. ' mousey.bmx
  21. ' the following tracks the position of the mouse
  22. graphics 640,480
  23. while not keyhit(KEY_ESCAPE)
  24. cls
  25. drawrect mousex()-10,mousey()-10,20,20
  26. flip
  27. wend
  28. See Also
  29. ========