MCPcopy Index your code
hub / github.com/DroomOne/Flipper-Plugin-Tutorial / input_callback

Function input_callback

hello_world.c:36–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static void input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
37 furi_assert(event_queue);
38
39 PluginEvent event = {.type = EventTypeKey, .input = *input_event};
40 furi_message_queue_put(event_queue, &event, FuriWaitForever);
41}
42
43static void hello_world_state_init(PluginState* const plugin_state) {
44 plugin_state->x = 50;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected