V3.5.0 Distribute touch events independently (#10712)

* Distribute touch events independently

* remove  touch event cast

* Fix the error of clang-tidy

Co-authored-by: qiuguohua <862332094@qq.com>
This commit is contained in:
qiuguohua
2022-04-10 22:10:15 +08:00
committed by GitHub
parent a7f48be180
commit e20e4b889e
15 changed files with 65 additions and 39 deletions
@@ -42,10 +42,10 @@ void OSInterface::dispatchEvent(const OSEvent& ev) {
}
}
void OSInterface::dispatchTouchEvent(const OSEvent& ev) {
void OSInterface::dispatchTouchEvent(const TouchEvent& ev) {
if (_evDispatchInterface) {
_evDispatchInterface->dispatchTouchEvent(ev);
}
}
} // namespace cc
} // namespace cc