Skip to content

Commit

Permalink
Updated to API 72.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspwo committed Aug 28, 2024
1 parent 8f7c749 commit 25655af
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions solitaire.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,15 @@ void init_start(GameState *game_state) {
}


static void input_callback(InputEvent *input_event, FuriMessageQueue *event_queue) {
static void input_callback(InputEvent *input_event, void* ctx) {
FuriMessageQueue* event_queue = ctx;
furi_assert(event_queue);
AppEvent event = {.type = EventTypeKey, .input = *input_event};
furi_message_queue_put(event_queue, &event, FuriWaitForever);
}

static void update_timer_callback(FuriMessageQueue *event_queue) {
static void update_timer_callback(void* ctx) {
FuriMessageQueue* event_queue = ctx;
furi_assert(event_queue);
AppEvent event = {.type = EventTypeTick};
furi_message_queue_put(event_queue, &event, 0);
Expand Down

0 comments on commit 25655af

Please sign in to comment.