|
|
@@ -794,8 +794,9 @@ static void render_callback(Canvas* const canvas, void* ctx) {
|
|
|
furi_mutex_release(plugin_state->mutex);
|
|
|
}
|
|
|
|
|
|
-static void input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
|
|
|
- furi_assert(event_queue);
|
|
|
+static void input_callback(InputEvent* input_event, void* ctx) {
|
|
|
+ furi_assert(ctx);
|
|
|
+ FuriMessageQueue* event_queue = ctx;
|
|
|
|
|
|
PluginEvent event = {.type = EventTypeKey, .input = *input_event};
|
|
|
furi_message_queue_put(event_queue, &event, 0);
|
|
|
@@ -844,8 +845,9 @@ static void doom_state_init(PluginState* const plugin_state) {
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-static void doom_game_update_timer_callback(FuriMessageQueue* event_queue) {
|
|
|
- furi_assert(event_queue);
|
|
|
+static void doom_game_update_timer_callback(void* ctx) {
|
|
|
+ furi_assert(ctx);
|
|
|
+ FuriMessageQueue* event_queue = ctx;
|
|
|
|
|
|
PluginEvent event = {.type = EventTypeTick};
|
|
|
furi_message_queue_put(event_queue, &event, 0);
|