[client] all: refactor keybind code & functions

This commit is contained in:
Geoffrey McRae
2021-01-26 02:51:03 +11:00
parent e18f7d3365
commit 37b3a26b9c
5 changed files with 39 additions and 40 deletions

View File

@@ -69,7 +69,7 @@ struct EGL_Desktop
};
// forwards
void egl_desktop_toggle_nv(SDL_Scancode key, void * opaque);
void egl_desktop_toggle_nv(int key, void * opaque);
static bool egl_init_desktop_shader(
struct DesktopShader * shader,
@@ -143,8 +143,7 @@ bool egl_desktop_init(EGL_Desktop ** desktop, EGLDisplay * display)
return true;
}
void egl_desktop_toggle_nv(SDL_Scancode key, void * opaque)
void egl_desktop_toggle_nv(int key, void * opaque)
{
EGL_Desktop * desktop = (EGL_Desktop *)opaque;
if (desktop->nvGain++ == desktop->nvMax)