MouseX
Xpos = MouseX()
 
Parameters: NONE
Returns:

    Xpos = The Current X position of the mouse pointer
 

      The MouseX() function will return the current X position of the mouse pointer.



FACTS:


      * none




Mini Tutorial:


      This example reads the mouse position and draws a circle in place of the mouse pointer.


  
  
; turn the mouse pointer off
  Mouse off
  
  
  Do
     Cls RGB(0,0,0)
     
   ; draw circle as the mouse pointer
     Circle MouseX(),MouseY(),5,1
     
   ; Display the Screen and wait for the user to press a key
     Sync
  Loop
  
  




 
Related Info: MouseButton | MouseMoveX | MouseMoveY | MouseMoveZ | MouseY | MouseZ :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com