diff options
Diffstat (limited to 'src/graphic/event.c')
| -rw-r--r-- | src/graphic/event.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/graphic/event.c b/src/graphic/event.c index c5986d4..ee20eab 100644 --- a/src/graphic/event.c +++ b/src/graphic/event.c @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/05/14 15:25:52 by charles #+# #+# */ -/* Updated: 2020/05/14 16:39:13 by charles ### ########.fr */ +/* Updated: 2020/05/14 18:49:43 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,6 +26,10 @@ static void st_handle_keydown(t_state *state, SDL_Keycode sym) state->polygon_mode = GL_FILL; GL_CALL(glPolygonMode(GL_FRONT_AND_BACK, state->polygon_mode)); } + else if (sym == SDLK_t) + { + state->transition = true; + } } static void st_handle_mousewheel(t_state *state, int y) |
