Robert Valentino Well-Known Member Licensed User Longtime User May 7, 2014 #1 I have the following sub for a panel touch Code: Copy sub PanelLine_Touch(Action As Int, X As Float, Y As Float) Log(Action) ' This line sometimes reports 3 Select Action Case Activity.ACTION_DOWN Case Activity.ACTION_UP Case Activity.ACTION_MOVE End Select End Sub The Log statement gives me 0, 1, 2 and sometimes a 3 What is a 3 for Action? BobVal
I have the following sub for a panel touch Code: Copy sub PanelLine_Touch(Action As Int, X As Float, Y As Float) Log(Action) ' This line sometimes reports 3 Select Action Case Activity.ACTION_DOWN Case Activity.ACTION_UP Case Activity.ACTION_MOVE End Select End Sub The Log statement gives me 0, 1, 2 and sometimes a 3 What is a 3 for Action? BobVal
barx Well-Known Member Licensed User Longtime User May 7, 2014 #2 public static final int ACTION_CANCEL Constant for getActionMasked(): The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would. Constant Value: 3 (0x00000003) Click to expand... Upvote 0
public static final int ACTION_CANCEL Constant for getActionMasked(): The current gesture has been aborted. You will not receive any more points in it. You should treat this as an up event, but not perform any action that you normally would. Constant Value: 3 (0x00000003) Click to expand...
Robert Valentino Well-Known Member Licensed User Longtime User May 7, 2014 #3 Barx: Thanks, Wonder why this is not defined under Activity like ACTION_UP, ACTION_DOWN and ACTION_MOVE At least now I know how to treat this. Thanks again Upvote 0
Barx: Thanks, Wonder why this is not defined under Activity like ACTION_UP, ACTION_DOWN and ACTION_MOVE At least now I know how to treat this. Thanks again