Add missing trackpad enum to android and web (flutter/engine#31429)

This commit is contained in:
Callum Moffat
2022-02-17 17:01:31 -05:00
committed by GitHub
parent d2640b977f
commit a43a417f9c
2 changed files with 4 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ enum PointerDeviceKind {
mouse,
stylus,
invertedStylus,
trackpad,
unknown
}

View File

@@ -45,6 +45,7 @@ public class AndroidTouchProcessor {
PointerDeviceKind.MOUSE,
PointerDeviceKind.STYLUS,
PointerDeviceKind.INVERTED_STYLUS,
PointerDeviceKind.TRACKPAD,
PointerDeviceKind.UNKNOWN
})
private @interface PointerDeviceKind {
@@ -52,7 +53,8 @@ public class AndroidTouchProcessor {
int MOUSE = 1;
int STYLUS = 2;
int INVERTED_STYLUS = 3;
int UNKNOWN = 4;
int TRACKPAD = 4;
int UNKNOWN = 5;
}
// Must match the PointerSignalKind enum in pointer.dart.