RightMouseButton
ButtonFlag = RightMouseButton()
 
Parameters: NONE
Returns:

    ButtonFlag = The State of this mouse button (0= not pressed, 1 = pressed)
 

     The RightMouseButton() function will return the current state of the Right mouse button only. If the button is being pressed the function will return a TRUE (1 value), if not, it will return a false (Zero value)



FACTS:


     * none



Mini Tutorial:


     This examble reads and display the pressed state of the LEFT,MIDDLE and RIGHT mouse buttons.

  
  
; Start an infinite D0-LOOp
  Do
     
   ; Clear the screen to black RGB(0,0,0)
     Cls RGB(0,0,0)
     
   ; Display a message to the user
     Print "Press A mouse Button"
     
   ; Now Check the BUTTONS using masking
     
   ; CHeck if the LEFT Button is pressed
     If LeftMouseButton()=true
        Print "Left Button is down"
     EndIf
     
   ; Check if the RIGHT Button is pressed
     If RightMouseButton()=true
        Print "Right Button is down"
     EndIf
     
   ; Check if the MIDDLE Button is pressed
     If MidMouseButton()=true
        Print "Middle Button is down"
     EndIf
     
   ; Display the screen
     Sync
     
   ; Loop back to the DO statement
  Loop
  




 
Related Info: LeftMouseButton | MidMouseButton | MouseButton | MouseMoveX | MouseMoveY | MouseMoveZ | MouseX | MouseY | MouseZ | SetMouse | SetMouseX | SetMouseY :
 


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