[FL-943] Add CLI command for input events injection (#363)

* input: add cli commands for input events injection
* input: add short and long events
This commit is contained in:
gornekich
2021-03-04 15:30:20 +03:00
committed by GitHub
parent 1ebbd2c266
commit 10978c51fd
2 changed files with 60 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include <stdint.h>
#include <stdio.h>
#include <furi.h>
#include <cli/cli.h>
#define INPUT_DEBOUNCE_TICKS_HALF (INPUT_DEBOUNCE_TICKS / 2)
#define INPUT_LONG_PRESS_TICKS 2048
@@ -25,6 +26,7 @@ typedef struct {
osThreadId_t thread;
PubSub event_pubsub;
InputPinState* pin_states;
Cli* cli;
} Input;
/* Input press timer callback */