Skip to content

Commit

Permalink
Update nuklear_sdl3_gl2.h
Browse files Browse the repository at this point in the history
added detection for L and R CTRL
  • Loading branch information
lessthen3 authored Oct 9, 2024
1 parent b0acb1e commit 6fd7ea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions demo/sdl_opengl2/nuklear_sdl3_gl2.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,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:
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

0 comments on commit 6fd7ea6

Please sign in to comment.