mirror of
https://github.com/openharmony/distributedhardware_distributed_input.git
synced 2026-07-18 16:04:40 -04:00
@@ -44,9 +44,10 @@ const uint32_t SLEEP_TIME_US = 100 * 1000;
|
||||
const std::string MOUSE_NODE_KEY = "mouse";
|
||||
}
|
||||
|
||||
InputHub::InputHub(bool isPluginMonitor) : epollFd_(-1), iNotifyFd_(-1), inputWd_(-1), isPluginMonitor_(isPluginMonitor),
|
||||
needToScanDevices_(true), mPendingEventItems{}, pendingEventCount_(0), pendingEventIndex_(0), pendingINotify_(false),
|
||||
deviceChanged_(false), inputTypes_(0), isStartCollectEvent_(false), isStartCollectHandler_(false)
|
||||
InputHub::InputHub(bool isPluginMonitor) : epollFd_(-1), iNotifyFd_(-1), inputWd_(-1),
|
||||
isPluginMonitor_(isPluginMonitor), needToScanDevices_(true), mPendingEventItems{},
|
||||
pendingEventCount_(0), pendingEventIndex_(0), pendingINotify_(false), deviceChanged_(false),
|
||||
inputTypes_(0), isStartCollectEvent_(false), isStartCollectHandler_(false)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
@@ -75,7 +75,7 @@ public:
|
||||
int32_t absYIndex;
|
||||
};
|
||||
|
||||
InputHub(bool isPluginMonitor);
|
||||
explicit InputHub(bool isPluginMonitor);
|
||||
~InputHub();
|
||||
size_t StartCollectInputEvents(RawEvent *buffer, size_t bufferSize);
|
||||
size_t StartCollectInputHandler(InputDeviceEvent *buffer, size_t bufferSize);
|
||||
|
||||
Reference in New Issue
Block a user