From: hgn Date: Tue, 20 Jul 2021 18:14:46 +0000 (+0100) Subject: basic tile editing X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=bcaeb5a77ed264aad18f552743fa19deb92a74a0;hp=-c;p=vg.git basic tile editing Former-commit-id: 00bd0600086421b4e1a24cd7e5d44729b8ebb9f4 --- bcaeb5a77ed264aad18f552743fa19deb92a74a0 diff --git a/fishladder.c.REMOVED.git-id b/fishladder.c.REMOVED.git-id index e87c366..5a246f3 100644 --- a/fishladder.c.REMOVED.git-id +++ b/fishladder.c.REMOVED.git-id @@ -1 +1 @@ -12628ca4bfd991c74da464f514dfbfedeeefe5f8 \ No newline at end of file +70448bc43d718d2fcf759a07eca9e0fa45de9642 \ No newline at end of file diff --git a/vg/config.h b/vg/config.h index 01c9b0a..d8a9246 100644 --- a/vg/config.h +++ b/vg/config.h @@ -2,16 +2,16 @@ static struct button_binding vg_button_binds[] = { - { .name = "fire0", .bind = GLFW_MOUSE_BUTTON_LEFT }, - { .name = "fire1", .bind = GLFW_MOUSE_BUTTON_RIGHT }, + { .name = "primary", .bind = GLFW_MOUSE_BUTTON_LEFT }, + { .name = "secondary", .bind = GLFW_MOUSE_BUTTON_RIGHT }, { .name = "noclip", .bind = GLFW_KEY_V, }, { .name = "jump", .bind = GLFW_KEY_SPACE } }; static struct axis_binding vg_axis_binds[] = { - { .name = "fire0", .positive = GLFW_MOUSE_BUTTON_LEFT, .negative = -1 }, - { .name = "fire1", .positive = GLFW_MOUSE_BUTTON_RIGHT, .negative = -1 }, + { .name = "primary", .positive = GLFW_MOUSE_BUTTON_LEFT, .negative = -1 }, + { .name = "secondary", .positive = GLFW_MOUSE_BUTTON_RIGHT, .negative = -1 }, { .name = "horizontal", .positive = GLFW_KEY_D, .negative = GLFW_KEY_A }, { .name = "vertical", .positive = GLFW_KEY_W, .negative = GLFW_KEY_S } };