Mir
|
Synchronously receives input events in a blocking manner. More...
#include <android_input_receiver.h>
Public Types | |
typedef std::function< nsecs_t(int)> | AndroidClock |
Public Member Functions | |
InputReceiver (droidinput::sp< droidinput::InputChannel > const &input_channel, std::shared_ptr< InputReceiverReport > const &report, AndroidClock clock=systemTime) | |
InputReceiver (int fd, std::shared_ptr< InputReceiverReport > const &report, AndroidClock clock=systemTime) | |
virtual | ~InputReceiver () |
int | fd () const |
virtual bool | next_event (std::chrono::milliseconds const &timeout, MirEvent &ev) |
Synchronously receive an event with millisecond timeout. A negative timeout value is used to request indefinite polling. More... | |
virtual bool | next_event (MirEvent &ev) |
virtual void | wake () |
May be used from any thread to wake an InputReceiver blocked in next_event. More... | |
Protected Member Functions | |
InputReceiver (const InputReceiver &)=delete | |
InputReceiver & | operator= (const InputReceiver &)=delete |
Synchronously receives input events in a blocking manner.
typedef std::function<nsecs_t(int)> mir::input::receiver::android::InputReceiver::AndroidClock |
mir::input::receiver::android::InputReceiver::InputReceiver | ( | droidinput::sp< droidinput::InputChannel > const & | input_channel, |
std::shared_ptr< InputReceiverReport > const & | report, | ||
AndroidClock | clock = systemTime |
||
) |
mir::input::receiver::android::InputReceiver::InputReceiver | ( | int | fd, |
std::shared_ptr< InputReceiverReport > const & | report, | ||
AndroidClock | clock = systemTime |
||
) |
|
virtual |
|
protecteddelete |
int mir::input::receiver::android::InputReceiver::fd | ( | ) | const |
|
virtual |
Synchronously receive an event with millisecond timeout. A negative timeout value is used to request indefinite polling.
|
inlinevirtual |
|
protecteddelete |
|
virtual |
May be used from any thread to wake an InputReceiver blocked in next_event.
Copyright © 2012,2013 Canonical Ltd.
Generated on Fri Oct 10 14:07:14 UTC 2014