Input: properly cast timer arg pointer to InputPinState (#354)
* Input: properly cast timer arg pointer to InputPinState * update codeowners
This commit is contained in:
parent
14c5307b98
commit
e39e1c3dce
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
@ -70,6 +70,7 @@ applications/dolphin/** @skotopes
|
|||||||
# GUI Stuff
|
# GUI Stuff
|
||||||
|
|
||||||
applications/gui/** @skotopes
|
applications/gui/** @skotopes
|
||||||
|
applications/input/** @skotopes
|
||||||
|
|
||||||
# iButton
|
# iButton
|
||||||
|
|
||||||
|
@ -7,9 +7,9 @@
|
|||||||
static Input* input = NULL;
|
static Input* input = NULL;
|
||||||
|
|
||||||
void input_press_timer_callback(void* arg) {
|
void input_press_timer_callback(void* arg) {
|
||||||
InputPin* input_pin = arg;
|
InputPinState* input_pin = arg;
|
||||||
InputEvent event;
|
InputEvent event;
|
||||||
event.key = input_pin->key;
|
event.key = input_pin->pin->key;
|
||||||
event.type = InputTypeLong;
|
event.type = InputTypeLong;
|
||||||
notify_pubsub(&input->event_pubsub, &event);
|
notify_pubsub(&input->event_pubsub, &event);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user