From cab7cb810641505a077e6c8b6efac1cedb148a67 Mon Sep 17 00:00:00 2001 From: lessthen3 <1337minecrafter6969@gmail.com> Date: Wed, 9 Oct 2024 00:09:22 -0400 Subject: [PATCH] Update nuklear_sdl3_gl3.h added L and R CTRL support --- demo/sdl_opengl3/nuklear_sdl3_gl3.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/demo/sdl_opengl3/nuklear_sdl3_gl3.h b/demo/sdl_opengl3/nuklear_sdl3_gl3.h index 1c0bc35d9..47898d1d3 100644 --- a/demo/sdl_opengl3/nuklear_sdl3_gl3.h +++ b/demo/sdl_opengl3/nuklear_sdl3_gl3.h @@ -384,6 +384,10 @@ nk_sdl_handle_event(SDL_Event* evt) { case SDLK_RSHIFT: /* RSHIFT & LSHIFT share same routine */ case SDLK_LSHIFT: nk_input_key(ctx, NK_KEY_SHIFT, down); break; + + case SDLK_RCTRL: /* LCTRL & RCTRL share same routine */ + case SDLK_LCTRL: nk_input_key(ctx, NK_KEY_CTRL, down); break; + case SDLK_DELETE: nk_input_key(ctx, NK_KEY_DEL, down); break; case SDLK_RETURN: nk_input_key(ctx, NK_KEY_ENTER, down); break; case SDLK_TAB: nk_input_key(ctx, NK_KEY_TAB, down); break; @@ -466,4 +470,4 @@ void nk_sdl_shutdown(void) memset(&sdl, 0, sizeof(sdl)); } -#endif \ No newline at end of file +#endif