aboutsummaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
committerKrow Savcik <krow@savcik.xyz>2023-09-26 22:32:35 +0300
commit9e660e594f6d3a43ea1427fb872801a2fcedad93 (patch)
tree459cd0c6fc5fef0366f7ef249ae19dd67c363772 /src/config.h
initial commit
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 0000000..e1a954a
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,34 @@
+#define COLTOINT(R,G,B) (R<<16)+(G<<8)+B
+
+const unsigned int maxzoom = 20;
+const unsigned int fps = 30;
+const char *def_palette_path = "assets/default.gpl";
+const char *def_theme_file = "assets/ui.png";
+const unsigned int back_c = COLTOINT(146, 161, 185);
+
+static Key keys[] = {
+ /* modifier key function argument */
+ {0, SDLK_EQUALS, user_canvas_zoom_change, {.i = 1}},
+ {0, SDLK_MINUS, user_canvas_zoom_change, {.i = -1}},
+ {0, SDLK_UP, user_canvas_move_y, {.i = 10}},
+ {0, SDLK_DOWN, user_canvas_move_y, {.i = -10}},
+ {0, SDLK_LEFT, user_canvas_move_x, {.i = 10}},
+ {0, SDLK_RIGHT, user_canvas_move_x, {.i = -10}},
+ {0, SDLK_s, user_canvas_save, {.v = NULL}},
+ {0, SDLK_r, user_canvas_refresh, {.v = NULL}},
+ {0, SDLK_o, user_canvas_open, {.s = NULL}},
+ {KMOD_LSHIFT, SDLK_e, user_canvas_export_png, {.v = NULL}},
+ {KMOD_LSHIFT, SDLK_i, user_canvas_import_png, {.s = NULL}},
+ {0, SDLK_b, user_tool_change, {.i = 0}},
+ {0, SDLK_e, user_tool_change, {.i = 1}},
+ {0, SDLK_f, user_tool_change, {.i = 2}},
+ {0, SDLK_i, user_tool_change, {.i = 3}},
+ {0, SDLK_n, user_canvas_create_new, {.v = NULL}},
+ {0, SDLK_LEFTBRACKET, user_canvas_pal_col_chng, {.i = -1}},
+ {0, SDLK_RIGHTBRACKET, user_canvas_pal_col_chng, {.i = 1}},
+/* {0, SDLK_j, user_testing_layer_add, {.i = 1}},*/
+ {KMOD_LSHIFT, SDLK_r, user_testing_reload_tex, {.i = 1}},
+/* {KMOD_LSHIFT, SDLK_LEFTBRACKET, user_layer_chng, {.i = -1}},*/
+/* {KMOD_LSHIFT, SDLK_RIGHTBRACKET, user_layer_chng, {.i = 1}},*/
+ {0, SDLK_m, user_debug_mem_show, {.v = NULL}},
+};