Android平台开发-Android keypad map-Android按键事件
摘要:一、Android底层按键事件处理过程 在系统启动后,在文件。。。中,android 会通过 static const char *device_path = "/dev/input"; bool EventHub::penPlatformInput(void) res = scan_dir(device_path); 通过下面的函数打开设备。 int EventHub::pen_device(const char *deviceName) { ... fd = open(deviceName, O_RDWR); ... mFDs[mFDCount].fd = fd; mF
阅读全文
posted @ 2011-06-22 21:47
浙公网安备 33010602011771号