Loading services/input/InputReader.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -5295,6 +5295,7 @@ void TouchInputMapper::dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) mPointerSimple.currentProperties.id = 0; mPointerSimple.currentProperties.toolType = mCurrentCookedPointerData.pointerProperties[index].toolType; mLastStylusTime = when; } else { down = false; hovering = false; Loading Loading @@ -5377,6 +5378,11 @@ void TouchInputMapper::dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, } } if (rejectPalm(when)) { // stylus is currently active mPointerSimple.reset(); return; } if (mPointerSimple.down && !down) { mPointerSimple.down = false; Loading Loading @@ -5494,6 +5500,9 @@ void TouchInputMapper::dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32 const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) { if (rejectPalm(when)) return; PointerCoords pointerCoords[MAX_POINTERS]; PointerProperties pointerProperties[MAX_POINTERS]; uint32_t pointerCount = 0; Loading services/input/InputReader.h +3 −0 Original line number Diff line number Diff line Loading @@ -1610,6 +1610,9 @@ private: VelocityControl mWheelXVelocityControl; VelocityControl mWheelYVelocityControl; // The time the stylus event was processed by any TouchInputMapper static nsecs_t mLastStylusTime; void sync(nsecs_t when); bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); Loading Loading
services/input/InputReader.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -5295,6 +5295,7 @@ void TouchInputMapper::dispatchPointerStylus(nsecs_t when, uint32_t policyFlags) mPointerSimple.currentProperties.id = 0; mPointerSimple.currentProperties.toolType = mCurrentCookedPointerData.pointerProperties[index].toolType; mLastStylusTime = when; } else { down = false; hovering = false; Loading Loading @@ -5377,6 +5378,11 @@ void TouchInputMapper::dispatchPointerSimple(nsecs_t when, uint32_t policyFlags, } } if (rejectPalm(when)) { // stylus is currently active mPointerSimple.reset(); return; } if (mPointerSimple.down && !down) { mPointerSimple.down = false; Loading Loading @@ -5494,6 +5500,9 @@ void TouchInputMapper::dispatchMotion(nsecs_t when, uint32_t policyFlags, uint32 const PointerProperties* properties, const PointerCoords* coords, const uint32_t* idToIndex, BitSet32 idBits, int32_t changedId, float xPrecision, float yPrecision, nsecs_t downTime) { if (rejectPalm(when)) return; PointerCoords pointerCoords[MAX_POINTERS]; PointerProperties pointerProperties[MAX_POINTERS]; uint32_t pointerCount = 0; Loading
services/input/InputReader.h +3 −0 Original line number Diff line number Diff line Loading @@ -1610,6 +1610,9 @@ private: VelocityControl mWheelXVelocityControl; VelocityControl mWheelYVelocityControl; // The time the stylus event was processed by any TouchInputMapper static nsecs_t mLastStylusTime; void sync(nsecs_t when); bool consumeRawTouches(nsecs_t when, uint32_t policyFlags); Loading