We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac99428 + 1cc7e90 commit a7096b1Copy full SHA for a7096b1
flipper_hero.c
@@ -46,8 +46,9 @@ void end_game(PluginState* plugin_state) {
46
plugin_state->isGameOver = true;
47
}
48
49
-static void input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
50
- furi_assert(event_queue);
+static void input_callback(InputEvent* input_event, void* ctx) {
+
51
+ FuriMessageQueue* event_queue = ctx;
52
PluginEvent event = {.type = EventTypeKey, .input = *input_event};
53
furi_message_queue_put(event_queue, &event, FuriWaitForever);
54
0 commit comments