Android Question Two buttons

edgar_ortiz

Active Member
Licensed User
Longtime User
There is NO way to press simultaneously two buttons... In my knowledge.

Regards,

Edgar

P.D.:
At the end... IF not relevant in your program... just Ignore.
 
Upvote 0

Eme Fibonacci

Well-Known Member
Licensed User
Longtime User
This worked for me

B4X:
Sub Process_Globals
   
    Private button1State As String
    Private button2State As String

End Sub

Sub Button1_Up
    button1State="up"
End Sub

Sub Button1_Down
    button1State="down"
    If button2State="down" Then ExitApplication
End Sub

Sub Button2_Up
    button2State="up"
End Sub

Sub Button2_Down
    button2State="down"
    If button1State="down" Then ExitApplication
End Sub
 
Upvote 0
Top