aboutsummaryrefslogtreecommitdiff
path: root/include/fractol.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-03-04 11:09:50 +0100
committerCharles <sircharlesaze@gmail.com>2020-03-04 11:11:24 +0100
commit9bbc949c432f6a981fdac5aec4b36edd2f4dcdba (patch)
treeb5cf3c8591267d3bc1f9fca800c1a048bd5b6004 /include/fractol.h
parentdab9efb7b745fe884fb72017591dce95978c19c4 (diff)
downloadfractol-linux.tar.gz
fractol-linux.tar.bz2
fractol-linux.zip
Linux branch with minilibx_linux(https://framagit.org/ggenois/minilibx_linux)linux
Diffstat (limited to 'include/fractol.h')
-rw-r--r--include/fractol.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/include/fractol.h b/include/fractol.h
index 99d350c..80696d3 100644
--- a/include/fractol.h
+++ b/include/fractol.h
@@ -16,6 +16,7 @@
# include <unistd.h>
# include <stdlib.h>
# include <stdbool.h>
+# include <stdint.h>
# include <fcntl.h>
# include <math.h>
# include <pthread.h>
@@ -48,26 +49,27 @@
// # define WINDOW_WIDTH_DOUBLE 640.0
// # define WINDOW_HEIGHT_DOUBLE 480.0
-# define MLXK_ESC 53
-# define MLXK_UP 126
-# define MLXK_DOWN 125
-# define MLXK_LEFT 123
-# define MLXK_RIGHT 124
-# define MLXK_H 4
-# define MLXK_J 38
-# define MLXK_K 40
-# define MLXK_L 37
-# define MLXK_D 2
-# define MLXK_F 3
-# define MLXK_S 1
-# define MLXK_E 14
-# define MLXK_R 15
-# define MLXK_C 8
-# define MLXK_PLUS 24
-# define MLXK_MINUS 27
+# define MLXK_ESC 65307
+# define MLXK_UP 65289
+# define MLXK_DOWN 65362
+# define MLXK_LEFT 65364
+# define MLXK_RIGHT 65361
+# define MLXK_H 104
+# define MLXK_J 106
+# define MLXK_K 107
+# define MLXK_L 108
+# define MLXK_D 100
+# define MLXK_F 102
+# define MLXK_S 115
+# define MLXK_E 101
+# define MLXK_R 114
+# define MLXK_C 99
+# define MLXK_PLUS 61
+# define MLXK_MINUS 45
# define MLX_MOUSE_SCROLL_UP 5
# define MLX_MOUSE_SCROLL_DOWN 4
+# define MLX_MOUSE_LEFT 1
# define MLX_LITTLE_ENDIAN 0
# define MLX_BIG_ENDIAN 1