Complex input checking.

BlitzMax Forums/BlitzMax Beginners Area/Complex input checking.


b1 = MouseDown(1)
b2 = MouseDown(2)

If Not b1 Or b2 Then
 ' do action x
Else If b1 And Not b2 Then
    ' preform action a
Else If b2 And Not b1 Then
    ' preform action a
End If

' or

buttons = MouseDown(1) * 1 | MouseDown(2) * 2

If Not buttons Then
 ' do action x
Else If buttons & 1 Then
    ' preform action a
Else If buttons & 2 Then
    ' preform action a
End If