func_input_mousex.rst 560 B

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