Flipper Zero SimulatorDismantle, inspect and operate the device.
Interactive lab
Loading the Blender model…
0/50
The input service turns raw GPIO edges into Press, Release, Short, Long and Repeat events.
Module: Display and input
Back is always "escape one level". Holding Back goes to the desktop.
static void input_cb(InputEvent* e, void* ctx) {
if(e->type == InputTypeShort && e->key == InputKeyBack) exit_app(ctx);
}
What does a long Back press do?
← 10. D-pad and tactile switches · All lessons · 12. Menus and the GUI stack →
Try it yourself
l11_input_events_and_the_b.c
static void input_cb(InputEvent* e, void* ctx) {
if(e->type == InputTypeShort && e->key == InputKeyBack) exit_app(ctx);
}