[client] app: add keybind to toggle frame timing information display
This commit is contained in:
1 parent
73357988e6
commit
df2f623599
3 files changed
+10
No files matched your search
@@ -54,6 +54,11 @@ static void bind_showFPS(int sc, void * opaque)
|
||||
app_showFPS(g_state.showFPS);
|
||||
}
|
||||
|
||||
static void bind_showTiming(int sc, void * opaque)
|
||||
{
|
||||
g_state.showTiming = !g_state.showTiming;
|
||||
}
|
||||
|
||||
static void bind_rotate(int sc, void * opaque)
|
||||
{
|
||||
if (g_params.winRotate == LG_ROTATE_MAX-1)
|
||||
@@ -134,6 +139,7 @@ void keybind_register(void)
|
||||
app_registerKeybind(KEY_F, bind_fullscreen, NULL, "Full screen toggle");
|
||||
app_registerKeybind(KEY_V, bind_video , NULL, "Video stream toggle");
|
||||
app_registerKeybind(KEY_D, bind_showFPS , NULL, "FPS display toggle");
|
||||
app_registerKeybind(KEY_T, bind_showTiming, NULL, "Show frame timing information");
|
||||
app_registerKeybind(KEY_R, bind_rotate , NULL, "Rotate the output clockwise by 90° increments");
|
||||
app_registerKeybind(KEY_Q, bind_quit , NULL, "Quit");
|
||||
|
||||
|
||||
Reference in new issue
Block a user