![]() |
BSB Developer Docs
|
Input: main API. More...
#include "input_common.h"#include <furi_hal_resources.h>Go to the source code of this file.
Data Structures | |
| struct | InputEvent |
| Input Event, dispatches with FuriPubSub. More... | |
Macros | |
| #define | RECORD_INPUT "input" |
| #define | RECORD_INPUT_EVENTS "input_events" |
| #define | INPUT_SEQUENCE_SOURCE_HARDWARE (0U) |
| #define | INPUT_SEQUENCE_SOURCE_SOFTWARE (1U) |
Enumerations | |
| enum | InputType { InputTypePress , InputTypeRelease , InputTypeShort , InputTypeLong , InputTypeRepeat , InputTypeMAX } |
| Input Types Some of them are physical events and some logical. More... | |
Functions | |
| const char * | input_get_key_name (InputKey key) |
| Get human readable input key name. | |
| const char * | input_get_type_name (InputType type) |
| Get human readable input type name. | |
| void | input_key_press (Input *input, InputKey key) |
| Set the pressed state of a key. | |
| void | input_key_release (Input *input, InputKey key) |
| Set the released state of a key. | |
| void | input_key_toggle (Input *input, InputKey key) |
| Toggle the state of a key. | |
| FuriState * | input_get_switch_pos (Input *input) |
| Get the reference to a FuriState with the mode switch position. | |
Input: main API.
Input: f64 side API.
| enum InputType |
Input Types Some of them are physical events and some logical.
| const char * input_get_key_name | ( | InputKey | key | ) |
Get human readable input key name.
| key | - InputKey |
| FuriState * input_get_switch_pos | ( | Input * | input | ) |
Get the reference to a FuriState with the mode switch position.
The FuriState stores a InputSwitchPosition type. InputSwitchPositionMAX means that state is unknown yet.
| [in] | input | Input instance |
FuriState as described above. | const char * input_get_type_name | ( | InputType | type | ) |
Get human readable input type name.
| type | - InputType |
Set the pressed state of a key.
| [in] | input | Input instance |
| [in] | key | Key |
Set the released state of a key.
| [in] | input | Input instance |
| [in] | key | Key |