[client] egl: add tooltip about Ctrl+Click on sharpness sliders

With the new keymap feature, we are now able to properly support letting
the user enter exact values into the sliders. This commit adds a tooltip
to help the user discover this feature.

Note that this currently only works on Wayland. The X11 backend will need
to call app_handleKeyboardModifiers.
This commit is contained in:
Quantum 2021-08-14 22:23:37 -04:00 committed by Geoffrey McRae
parent c89518ead4
commit 36073586e7
2 changed files with 4 additions and 0 deletions

View File

@ -177,6 +177,8 @@ static bool egl_filterFFXCASImguiConfig(EGL_Filter * filter)
igGetStyle()->WindowPadding.x);
igSliderFloat("##casSharpness", &casSharpness, 0.0f, 1.0f, NULL, 0);
if (igIsItemHovered(ImGuiHoveredFlags_None))
igSetTooltip("Ctrl+Click to enter a value");
igPopItemWidth();
if (casSharpness != this->sharpness)

View File

@ -280,6 +280,8 @@ static bool egl_filterFFXFSR1ImguiConfig(EGL_Filter * filter)
igPushItemWidth(igGetWindowWidth() - igGetCursorPosX() -
igGetStyle()->WindowPadding.x);
igSliderFloat("##fsr1Sharpness", &sharpness, 0.0f, 1.0f, NULL, 0);
if (igIsItemHovered(ImGuiHoveredFlags_None))
igSetTooltip("Ctrl+Click to enter a value");
igPopItemWidth();
if (sharpness != this->sharpness)