Android 输入事件流程
2010-05-24 21:08:00 来源:WEB开发网核心提示:readEvent(ev);send = preprocessEvent(di, ev);addLocked(di, curTime, ev.flags, ..., me);}}};输入事件分发线程在frameworks/base/services/java/com/android/server/WindowManag
readEvent(ev);
send = preprocessEvent(di, ev);
addLocked(di, curTime, ev.flags, ..., me);
}
}
};
输入事件分发线程在frameworks/base/services/java/com/android/server/WindowManagerService.java里创建了一个输入事件分发线程,它负责把事件分发到相应的窗口上去。
mQueue.getEvent
dispatchKey/dispatchPointer/dispatchTrackball
更多精彩
赞助商链接