MX 1 년 전
부모
커밋
bfb91d4b53
1개의 변경된 파일6개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 4
      tictactoe_game.c

+ 6 - 4
tictactoe_game.c

@@ -288,15 +288,17 @@ static void tictactoe_draw_callback(Canvas* const canvas, void* ctx) {
     furi_mutex_release(ticst->mutex);
 }
 
-static void tictactoe_input_callback(InputEvent* input_event, FuriMessageQueue* event_queue) {
-    furi_assert(event_queue);
+static void tictactoe_input_callback(InputEvent* input_event, void* ctx) {
+    furi_assert(ctx);
+    FuriMessageQueue* event_queue = ctx;
 
     GameEvent event = {.type = EventTypeKey, .input = *input_event};
     furi_message_queue_put(event_queue, &event, FuriWaitForever);
 }
 
-static void tictactoe_update_timer_callback(FuriMessageQueue* event_queue) {
-    furi_assert(event_queue);
+static void tictactoe_update_timer_callback(void* ctx) {
+    furi_assert(ctx);
+    FuriMessageQueue* event_queue = ctx;
 
     GameEvent event = {.type = EventTypeTick};
     furi_message_queue_put(event_queue, &event, 0);