How to use Button_down?

positrom2

Active Member
Licensed User
Longtime User
Hi,
I like to have a cursor moving as long as I hold down a button. I was assuming the button_down instead of button_click would do it, but nevertheless with the code below the cursor only moves when clicking the button.

B4X:
Sub btnTest_down
If btntest_down=True Then
cursor=cursor+10
End If
btnTest_flag=True 'used to update the cursor appearance
End Sub
thanks for advice, positrom2
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…