mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-02 05:12:02 +00:00
[client] keybind: use physical keycodes for layout-independent hotkeys
Fixes #1298
This commit is contained in:
@@ -53,7 +53,7 @@ static void fps_earlyInit(void)
|
||||
|
||||
static bool fps_init(void ** udata, const void * params)
|
||||
{
|
||||
app_registerKeybind(0, 'D', showFPSKeybind, NULL, "FPS display toggle");
|
||||
app_registerKeybind(KEY_D, showFPSKeybind, NULL, "FPS display toggle");
|
||||
showFPS = option_get_bool("win", "showFPS");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -82,7 +82,7 @@ static void graphs_earlyInit(void)
|
||||
static bool graphs_init(void ** udata, const void * params)
|
||||
{
|
||||
app_overlayConfigRegister("Performance Metrics", configCallback, NULL);
|
||||
app_registerKeybind(0, 'T', showTimingKeybind, NULL,
|
||||
app_registerKeybind(KEY_T, showTimingKeybind, NULL,
|
||||
"Show frame timing information");
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -70,10 +70,7 @@ static int help_render(void * udata, bool interactive, struct Rect * windowRects
|
||||
continue;
|
||||
|
||||
igTableNextColumn();
|
||||
if (handle->sc)
|
||||
igText("%s+%s", escapeName, linux_to_display[handle->sc]);
|
||||
else
|
||||
igText("%s+%c", escapeName, handle->charcode);
|
||||
igText("%s+%s", escapeName, linux_to_display[handle->sc]);
|
||||
igTableNextColumn();
|
||||
igTextUnformatted(handle->description, NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user