From c9098d549d63b5fe18d8c95049ba13a5ae6e9eca Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 20 May 2020 09:02:13 +0200 Subject: Added multiple key pressed at once --- inc/mandel.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'inc') diff --git a/inc/mandel.h b/inc/mandel.h index a98e007..1496aa0 100644 --- a/inc/mandel.h +++ b/inc/mandel.h @@ -13,6 +13,20 @@ error_check_sdl(#x, __FILE__, __LINE__); \ } while (0) +enum +{ + KEY_UP = 0, + KEY_DOWN, + KEY_RIGHT, + KEY_LEFT, + + KEY_INC_ITERATIONS, + KEY_DEC_ITERATIONS, + + KEY_ZOOM_IN, + KEY_ZOOM_OUT, +}; + typedef union { uint32_t data; -- cgit