Loading services/inputflinger/reader/mapper/CapturedTouchpadEventConverter.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -155,8 +155,8 @@ std::list<NotifyArgs> CapturedTouchpadEventConverter::process(const RawEvent& ra mMotionAccumulator.finishSync(); } mCursorButtonAccumulator.process(&rawEvent); mMotionAccumulator.process(&rawEvent); mCursorButtonAccumulator.process(rawEvent); mMotionAccumulator.process(rawEvent); return out; } Loading services/inputflinger/reader/mapper/CursorInputMapper.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -55,14 +55,14 @@ void CursorMotionAccumulator::clearRelativeAxes() { mRelY = 0; } void CursorMotionAccumulator::process(const RawEvent* rawEvent) { if (rawEvent->type == EV_REL) { switch (rawEvent->code) { void CursorMotionAccumulator::process(const RawEvent& rawEvent) { if (rawEvent.type == EV_REL) { switch (rawEvent.code) { case REL_X: mRelX = rawEvent->value; mRelX = rawEvent.value; break; case REL_Y: mRelY = rawEvent->value; mRelY = rawEvent.value; break; } } Loading Loading @@ -217,9 +217,9 @@ std::list<NotifyArgs> CursorInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> CursorInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out; mCursorButtonAccumulator.process(rawEvent); mCursorMotionAccumulator.process(rawEvent); mCursorScrollAccumulator.process(rawEvent); mCursorButtonAccumulator.process(*rawEvent); mCursorMotionAccumulator.process(*rawEvent); mCursorScrollAccumulator.process(*rawEvent); if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { const auto [eventTime, readTime] = Loading services/inputflinger/reader/mapper/CursorInputMapper.h +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public: CursorMotionAccumulator(); void reset(InputDeviceContext& deviceContext); void process(const RawEvent* rawEvent); void process(const RawEvent& rawEvent); void finishSync(); inline int32_t getRelativeX() const { return mRelX; } Loading services/inputflinger/reader/mapper/ExternalStylusInputMapper.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -63,8 +63,8 @@ std::list<NotifyArgs> ExternalStylusInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> ExternalStylusInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out; mSingleTouchMotionAccumulator.process(rawEvent); mTouchButtonAccumulator.process(rawEvent); mSingleTouchMotionAccumulator.process(*rawEvent); mTouchButtonAccumulator.process(*rawEvent); if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { out += sync(rawEvent->when); Loading services/inputflinger/reader/mapper/MultiTouchInputMapper.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ std::list<NotifyArgs> MultiTouchInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> MultiTouchInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out = TouchInputMapper::process(rawEvent); mMultiTouchMotionAccumulator.process(rawEvent); mMultiTouchMotionAccumulator.process(*rawEvent); return out; } Loading Loading
services/inputflinger/reader/mapper/CapturedTouchpadEventConverter.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -155,8 +155,8 @@ std::list<NotifyArgs> CapturedTouchpadEventConverter::process(const RawEvent& ra mMotionAccumulator.finishSync(); } mCursorButtonAccumulator.process(&rawEvent); mMotionAccumulator.process(&rawEvent); mCursorButtonAccumulator.process(rawEvent); mMotionAccumulator.process(rawEvent); return out; } Loading
services/inputflinger/reader/mapper/CursorInputMapper.cpp +8 −8 Original line number Diff line number Diff line Loading @@ -55,14 +55,14 @@ void CursorMotionAccumulator::clearRelativeAxes() { mRelY = 0; } void CursorMotionAccumulator::process(const RawEvent* rawEvent) { if (rawEvent->type == EV_REL) { switch (rawEvent->code) { void CursorMotionAccumulator::process(const RawEvent& rawEvent) { if (rawEvent.type == EV_REL) { switch (rawEvent.code) { case REL_X: mRelX = rawEvent->value; mRelX = rawEvent.value; break; case REL_Y: mRelY = rawEvent->value; mRelY = rawEvent.value; break; } } Loading Loading @@ -217,9 +217,9 @@ std::list<NotifyArgs> CursorInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> CursorInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out; mCursorButtonAccumulator.process(rawEvent); mCursorMotionAccumulator.process(rawEvent); mCursorScrollAccumulator.process(rawEvent); mCursorButtonAccumulator.process(*rawEvent); mCursorMotionAccumulator.process(*rawEvent); mCursorScrollAccumulator.process(*rawEvent); if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { const auto [eventTime, readTime] = Loading
services/inputflinger/reader/mapper/CursorInputMapper.h +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ public: CursorMotionAccumulator(); void reset(InputDeviceContext& deviceContext); void process(const RawEvent* rawEvent); void process(const RawEvent& rawEvent); void finishSync(); inline int32_t getRelativeX() const { return mRelX; } Loading
services/inputflinger/reader/mapper/ExternalStylusInputMapper.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -63,8 +63,8 @@ std::list<NotifyArgs> ExternalStylusInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> ExternalStylusInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out; mSingleTouchMotionAccumulator.process(rawEvent); mTouchButtonAccumulator.process(rawEvent); mSingleTouchMotionAccumulator.process(*rawEvent); mTouchButtonAccumulator.process(*rawEvent); if (rawEvent->type == EV_SYN && rawEvent->code == SYN_REPORT) { out += sync(rawEvent->when); Loading
services/inputflinger/reader/mapper/MultiTouchInputMapper.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ std::list<NotifyArgs> MultiTouchInputMapper::reset(nsecs_t when) { std::list<NotifyArgs> MultiTouchInputMapper::process(const RawEvent* rawEvent) { std::list<NotifyArgs> out = TouchInputMapper::process(rawEvent); mMultiTouchMotionAccumulator.process(rawEvent); mMultiTouchMotionAccumulator.process(*rawEvent); return out; } Loading