四,InputDispatch怎么处理事件的?InputDispatch的循环同样是通过InputDispatchThread的ThreadLoop调用dispatchOnce实现的。在分发事件的处理中,如果事件类型是TYPE_KEY,将分发给dispatchKeyLocked。InputDispatcher.cpp
voidInputDispatcher::dispatchOnceInnerLo
转载
2023-10-12 10:48:46
85阅读
新课程优惠获取请加入千里马老师qq群:422901085 上节课已经讲到了InputReaderThread和InputDispatchThread已经启动了,调用了对应的run方法,这里会导致对应的threadLoop方法执行:native/services/inputflinger/InputReaderBase.cppbool InputReaderThread::threadLoop()
转载
2024-10-08 10:06:10
33阅读