Browse Source

Input: properly cast timer arg pointer to InputPinState (#354)

* Input: properly cast timer arg pointer to InputPinState
* update codeowners
あく 4 năm trước cách đây
mục cha
commit
e39e1c3dce
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      .github/CODEOWNERS
  2. 2 2
      applications/input/input.c

+ 1 - 0
.github/CODEOWNERS

@@ -70,6 +70,7 @@ applications/dolphin/** @skotopes
 # GUI Stuff
 
 applications/gui/** @skotopes
+applications/input/** @skotopes
 
 # iButton
 

+ 2 - 2
applications/input/input.c

@@ -7,9 +7,9 @@
 static Input* input = NULL;
 
 void input_press_timer_callback(void* arg) {
-    InputPin* input_pin = arg;
+    InputPinState* input_pin = arg;
     InputEvent event;
-    event.key = input_pin->key;
+    event.key = input_pin->pin->key;
     event.type = InputTypeLong;
     notify_pubsub(&input->event_pubsub, &event);
 }