mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Android: Handle pointer event cancellation
This commit is contained in:
@@ -171,6 +171,13 @@ public class NativeApp {
|
||||
if (ev.getActionIndex() == i)
|
||||
code = 4;
|
||||
break;
|
||||
case MotionEvent.ACTION_CANCEL:
|
||||
Log.i(TAG, "ACTION_CANCEL");
|
||||
if (ev.getActionIndex() == i) {
|
||||
// Handle like ACTION_UP for now.
|
||||
code = 4;
|
||||
}
|
||||
break;
|
||||
case MotionEvent.ACTION_MOVE: {
|
||||
code = 1;
|
||||
if (Build.VERSION.SDK_INT >= 24) {
|
||||
|
||||
Reference in New Issue
Block a user