Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Use Ctrl modifier for window resize key bindings

  • Loading branch information
slouken committed Oct 3, 2012
1 parent 5a435ac commit bf1427e7974a6a518c62c209fdd30f24bb2ebb68
Showing with 6 additions and 2 deletions.
  1. +6 −2 test/common.c
@@ -1100,7 +1100,9 @@ CommonEvent(CommonState * state, SDL_Event * event, int *done)
}
}
break;
case SDLK_EQUALS: {
case SDLK_EQUALS:
if (event->key.keysym.mod & KMOD_CTRL) {
/* Ctrt-+ double the size of the window */
SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
if (window) {
int w, h;
@@ -1109,7 +1111,9 @@ CommonEvent(CommonState * state, SDL_Event * event, int *done)
}
}
break;
case SDLK_MINUS: {
case SDLK_MINUS:
if (event->key.keysym.mod & KMOD_CTRL) {
/* Ctrt-- double the size of the window */
SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
if (window) {
int w, h;

0 comments on commit bf1427e

Please sign in to comment.