1. Reader线程核心类--EventHub
1.1 Reader线程核心结构体
实例化对象:mEventHub--表示多个输入设备,里面有数组mPendingEventItems存储多个设备
struct epoll_event mPendingEventItems[EPOLL_MAX_EVENTS];
mDevice--vector,用来表示记录多个输入设备
KeyedVector<int32_t, Device*> mDevices; //int32_t表示编号,Device*表示输入设备
1.2 取出输入设备
编号
Device*
name : String8
bus : uint16_t
vendor : uint16_t
product : uint16_t
version : uint16_t
设备描述符fd
标志信息identify
映射信息
网友评论