summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-10-19 16:56:39 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2022-11-16 15:28:08 +0000
commit3f7545f4e6b09f652bb80807e177e381cf39ad9f (patch)
tree4a80306ad623b322126403510227380afb1be06b /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent9a561c204613550b40d8dba39e1b81e67403e0c4 (diff)
Differentiate fused and unfused external styluses
An external stylus can be "fused" with touch data if it reports pointer-specific data independently from the touch device. The only such data we currently support is pressure. Thus, a fused external stylus will reports pressure data. If a fused stylus is connected, we withold all touches for up to 72 milliseconds to wait for pressure data from the stylus. If we get pressure data within this time, we assume that the first pointer that went down is actually the stylus, and fuse the pressure information from the stylus to the pointer. If an external stylus does not report pressure, it is an "unfused" stylus. When such an external stylus is connected, we don't withold any touches. We still report button presses from these styluses through the touch device. DD: go/android-stylus-buttons Bug: 246394583 Test: atest inputflinger_tests Change-Id: I3d687a10630019756170e7e5e5f5d1902eb96e36
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions