Skip to content

Commit a7096b1

Browse files
authored
Merge pull request #6 from lucaspwo/update-ofw-0.105.0
Updated code for API 72.1
2 parents ac99428 + 1cc7e90 commit a7096b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flipper_hero.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ void end_game(PluginState* plugin_state) {
4646
plugin_state->isGameOver = true;
4747
}
4848

49-
static void input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
50-
furi_assert(event_queue);
49+
static void input_callback(InputEvent* input_event, void* ctx) {
50+
51+
FuriMessageQueue* event_queue = ctx;
5152
PluginEvent event = {.type = EventTypeKey, .input = *input_event};
5253
furi_message_queue_put(event_queue, &event, FuriWaitForever);
5354
}

0 commit comments

Comments
 (0)