button = 1: Left Button, 2: Right Button, 3: Middle Button |
This command (and its counterparts dxKeyDown and JoyDown) is used to detect if a mouse button is being held down. You must check for each mouse button independantly with its corresponding number (unlike dxKeyDown which returns WHICH key is being held down). Also see dxMouseHit. |
; dxMouseDown Example ; Until user presses ESC, show the mouse button pressed While Not dxKeyHit(1) button$="No" If dxMouseDown(1) Then button$="Left" If dxMouseDown(2) Then button$="Right" If dxMouseDown(3) Then button$="Middle" dxPrint button$ + " mouse button pressed!" Wend |