summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorNathaniel R. Lewis <nlewis@gaikai.com>2019-02-13 17:16:17 -0800
committerNathaniel R. Lewis <nlewis@gaikai.com>2019-02-19 13:44:44 -0800
commite1a3606ee6cca0f9e9ad834e6d4fa4dc6dd0b35f (patch)
tree11a7ecd312d0f60d990fbfb5b018c8bdbdf5dc36 /rs/java/android/renderscript/ProgramStore.java
parenta65ac91cbd779e267973fb017af1abb06daa6fcb (diff)
Fixes for touchpad capture
When touchpad capture is enabled, events still are received via onGenericMotionEvent. As pointer capture sends events via onCapturedPointerEvent, this patch changes the callback used by captured touchpads to also be onCapturedPointerEvent. Make events from a captured touchpad cause the device to leave touch mode. Captured mice cause the device to exit touch mode through the virtual dpad which is mapped to it due to being derived from SOURCE_CLASS_TRACKBALL. Test: Write an app that starts pointer capture on a device with a touchpad. Events from touchpad should be received via onCapturedPointerEvent. Test: Using the captured touchpad in the first test should cause the view to be focusable even when not in touch mode. Change-Id: If6fa94c66f1d9395a13fd5f31f642567256dd818
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions