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);
74 Fd watch_fd()
const override;
87 droidinput::sp<droidinput::InputChannel> input_channel;
88 std::function<void(MirEvent*)>
const handler;
89 std::shared_ptr<XKBMapper>
const xkb_mapper;
90 std::shared_ptr<InputReceiverReport>
const report;
92 std::shared_ptr<droidinput::InputConsumer> input_consumer;
93 droidinput::PreallocatedInputEventFactory event_factory;
95 AndroidClock
const android_clock;
98 void process_and_maybe_send_event();
99 static void consume_wake_notification(
mir::Fd const& fd);
108 #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:181