19 #ifndef MIR_INPUT_RECEIVER_ANDROID_INPUT_RECEIVER_H_
20 #define MIR_INPUT_RECEIVER_ANDROID_INPUT_RECEIVER_H_
27 #include <utils/StrongPointer.h>
28 #include <androidfw/Input.h>
50 class InputReceiverReport;
61 InputReceiver(droidinput::sp<droidinput::InputChannel>
const& input_channel,
62 std::shared_ptr<XKBMapper>
const& keymapper,
63 std::function<
void(
MirEvent*)>
const& event_handling_callback,
64 std::shared_ptr<InputReceiverReport>
const& report,
65 AndroidClock clock = systemTime);
67 std::shared_ptr<XKBMapper>
const& keymapper,
68 std::function<
void(
MirEvent*)>
const& event_handling_callback,
69 std::shared_ptr<InputReceiverReport>
const& report,
70 AndroidClock clock = systemTime);
84 Fd notify_receiver_fd;
88 droidinput::sp<droidinput::InputChannel> input_channel;
89 std::function<void(MirEvent*)>
const handler;
90 std::shared_ptr<XKBMapper>
const xkb_mapper;
91 std::shared_ptr<InputReceiverReport>
const report;
93 std::shared_ptr<droidinput::InputConsumer> input_consumer;
94 droidinput::PreallocatedInputEventFactory event_factory;
96 AndroidClock
const android_clock;
99 void process_and_maybe_send_event();
100 static void consume_wake_notification(
mir::Fd const& fd);
109 #endif // MIR_INPUT_RECEIVER_ANDROID_INPUT_RECEIVER_H_
All things Mir.
Definition: atomic_callback.h:25
An adaptor that combines multiple Dispatchables into a single Dispatchable.
Definition: multiplexing_dispatchable.h:52
Definition: dispatchable.h:38
uint32_t FdEvents
Definition: dispatchable.h:36
Definition: android_input_receiver.h:36
Definition: event_private.h:178