Add send ACTION_BUTTON_PRESS and ACTION_BUTTON_RELEASE in touchpad L/R
Touchpad L/R only upload ACTION_DOWN and ACTION_UP,
but mouse L/R upload ACTION_DOWN、ACTION_BUTTON_PRESS、
ACTION_BUTTON_RELEASE and ACTION_UP, there are
different. It may cause the app to fail to handle
touchpad L/R press behavior.
Test: manual
Bug: 237355203
Signed-off-by: LiZhihong <lizh52@lenovo.corp-partner.google.com>
Change-Id: I0934ae237e89eb65f3e9a34b2c12e5467052d43c
diff --git a/services/inputflinger/reader/mapper/TouchInputMapper.h b/services/inputflinger/reader/mapper/TouchInputMapper.h
index 87deb39..7b464ef 100644
--- a/services/inputflinger/reader/mapper/TouchInputMapper.h
+++ b/services/inputflinger/reader/mapper/TouchInputMapper.h
@@ -735,6 +735,14 @@
uint32_t policyFlags);
[[nodiscard]] std::list<NotifyArgs> dispatchButtonPress(nsecs_t when, nsecs_t readTime,
uint32_t policyFlags);
+ [[nodiscard]] std::list<NotifyArgs> dispatchGestureButtonPress(nsecs_t when,
+ uint32_t policyFlags,
+ BitSet32 idBits,
+ nsecs_t readTime);
+ [[nodiscard]] std::list<NotifyArgs> dispatchGestureButtonRelease(nsecs_t when,
+ uint32_t policyFlags,
+ BitSet32 idBits,
+ nsecs_t readTime);
const BitSet32& findActiveIdBits(const CookedPointerData& cookedPointerData);
void cookPointerData();
[[nodiscard]] std::list<NotifyArgs> abortTouches(nsecs_t when, nsecs_t readTime,