aboutsummaryrefslogtreecommitdiff
path: root/src/sdl/action.c
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2019-01-14 15:48:28 -0500
committerPaul Duncan <pabs@pablotron.org>2019-01-14 15:48:28 -0500
commitb1636be89cb6bc391cf920dbb6f8d15a1ac645ab (patch)
tree150e58671b769baffc004f71f1f958e9d494f4dc /src/sdl/action.c
parentd34860bce761e58c1edc62c7f3dc03f47589d0ba (diff)
downloadsok-b1636be89cb6bc391cf920dbb6f8d15a1ac645ab.tar.bz2
sok-b1636be89cb6bc391cf920dbb6f8d15a1ac645ab.zip
increase zoom levels, add zoom keys
Diffstat (limited to 'src/sdl/action.c')
-rw-r--r--src/sdl/action.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sdl/action.c b/src/sdl/action.c
index 84f415a..72b6fb2 100644
--- a/src/sdl/action.c
+++ b/src/sdl/action.c
@@ -68,6 +68,10 @@ get_key_action(
return (action_t) { .type = ACTION_RESET };
case SDLK_s:
return (action_t) { .type = ACTION_SOLVE };
+ case SDLK_EQUALS:
+ return (action_t) { .type = ACTION_ZOOM_IN, .data = 1 };
+ case SDLK_MINUS:
+ return (action_t) { .type = ACTION_ZOOM_OUT, .data = -1 };
default:
return (action_t) { .type = ACTION_NONE };
}