Skip to content

Commit

Permalink
Update nuklear_sdl3_gl3.h
Browse files Browse the repository at this point in the history
added L and R CTRL support
  • Loading branch information
lessthen3 authored Oct 9, 2024
1 parent 6fd7ea6 commit cab7cb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion demo/sdl_opengl3/nuklear_sdl3_gl3.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -466,4 +470,4 @@ void nk_sdl_shutdown(void)
memset(&sdl, 0, sizeof(sdl));
}

#endif
#endif

0 comments on commit cab7cb8

Please sign in to comment.