app: [android] handle touch events from stylus

Fixes gio#291

Signed-off-by: Dylan Staley <88163+dstaley@users.noreply.github.com>
This commit is contained in:
Dylan Staley
2021-10-15 11:38:17 -07:00
committed by Elias Naur
parent 0048f7be1d
commit 4d22a926a9
+2
View File
@@ -648,6 +648,8 @@ func Java_org_gioui_GioView_onTouchEvent(env *C.JNIEnv, class C.jclass, handle C
switch tool {
case C.AMOTION_EVENT_TOOL_TYPE_FINGER:
src = pointer.Touch
case C.AMOTION_EVENT_TOOL_TYPE_STYLUS:
src = pointer.Touch
case C.AMOTION_EVENT_TOOL_TYPE_MOUSE:
src = pointer.Mouse
case C.AMOTION_EVENT_TOOL_TYPE_UNKNOWN: