2
0
mirror of https://github.com/Genymobile/scrcpy synced 2025-09-02 15:25:14 +00:00

Add Ctrl+i shortcut to enable/disable FPS counter

Disable FPS counter on start, and use Ctrl+i to enable/disable it.
This commit is contained in:
Romain Vimont
2018-02-15 12:24:16 +01:00
parent 000ced9ba8
commit d977202224
4 changed files with 23 additions and 1 deletions

View File

@@ -32,6 +32,7 @@ static struct controller controller;
static struct input_manager input_manager = {
.controller = &controller,
.frames = &frames,
.screen = &screen,
};
@@ -50,7 +51,6 @@ static void event_loop(void) {
screen.has_frame = SDL_TRUE;
// this is the very first frame, show the window
screen_show_window(&screen);
fps_counter_start(&frames.fps_counter);
}
if (!screen_update_frame(&screen, &frames)) {
return;