#include <input_reader_dispatchable.h>
mir::input::android::InputReaderDispatchable::InputReaderDispatchable |
( |
std::shared_ptr< droidinput::EventHubInterface > const & |
event_hub, |
|
|
std::shared_ptr< droidinput::InputReaderInterface > const & |
reader |
|
) |
| |
Dispatch one pending event.
- Parameters
-
[in] | event | The set of events current on the file-descriptor |
- Returns
- False iff no more events will be produced by this Dispatchable. Dispatch should no longer be called.
- Note
- This will dispatch at most one event. If there are multiple events specified in event (eg: readable | remote_closed) then dispatch will process only one.
-
It is harmless to call dispatch() with an event that does not contain any of the events from relevant_events(). The function will do nothing in such a case.
-
An implementation of dispatch() MUST handle FdEvent::error, if only to return false and terminate further event dispatch.
Implements mir::dispatch::Dispatchable.
void mir::input::android::InputReaderDispatchable::start |
( |
| ) |
|
|
overridevirtual |
Fd mir::input::android::InputReaderDispatchable::watch_fd |
( |
| ) |
const |
|
overridevirtual |
The documentation for this struct was generated from the following file:
Copyright © 2012-2015 Canonical Ltd.
Generated on Thu Oct 8 16:20:16 UTC 2015