Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

frameworks-native: 提交

frameworks/native


Commit MetaInfo

修订版878c62c8a9da3f89e4a740d6fa00c080c59f29bc (tree)
时间2020-04-14 23:37:19
作者Chih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

inputflinger: fix relative mouse movement

Since commit 78f97b326 ("Support pointer capture in InputReader") the
logic to determine whether mouse input is relative was changed.
However, commit 47addd2 was forward ported from nougat-x86. It doesn't
consider that.

Fixes: 47addd2 ("inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer")
Reported-and-tested-by: MrARM Slack <mrarm.slack@gmail.com>

更改概述

差异

--- a/services/inputflinger/InputReader.cpp
+++ b/services/inputflinger/InputReader.cpp
@@ -2830,7 +2830,7 @@ void CursorInputMapper::sync(nsecs_t when) {
28302830 rotateDelta(mOrientation, &deltaX, &deltaY);
28312831 }
28322832 mPointerVelocityControl.move(when, &deltaX, &deltaY);
2833- if (mPointerController != NULL) {
2833+ if (mSource == AINPUT_SOURCE_MOUSE) {
28342834 if (moved) {
28352835 mPointerController->move(deltaX, deltaY);
28362836 }
Show on old repository browser