X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_config.h;h=626aef8979837f21b340f603c5bccc201ecc893a;hb=4a883ac1b2506032f9dddab342712de46f2ca734;hp=b1348a0ac7950ab58166bbdda2f41cb744b5975e;hpb=3f59dc191c7792947cd2d3f6588be06933fd49f0;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/vg_config.h b/vg_config.h index b1348a0..626aef8 100644 --- a/vg_config.h +++ b/vg_config.h @@ -1,5 +1,6 @@ // Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved #define VG_CONFIG +#include "vg/vg.h" static struct button_binding vg_button_binds[] = { @@ -13,12 +14,25 @@ static struct button_binding vg_button_binds[] = { .name = "down", .bind = GLFW_KEY_F }, { .name = "yawl", .bind = GLFW_KEY_Q }, { .name = "yawr", .bind = GLFW_KEY_E }, + { .name = "push", .bind = GLFW_KEY_T } +}; + +static struct button_binding vg_controller_binds[] = +{ + { "push", GLFW_GAMEPAD_BUTTON_A }, + { "break", GLFW_GAMEPAD_BUTTON_B }, + { "switchmode", GLFW_GAMEPAD_BUTTON_Y }, + { "jump", GLFW_GAMEPAD_BUTTON_X } }; static struct axis_binding vg_axis_binds[] = { { .name = "horizontal", .axis = GLFW_GAMEPAD_AXIS_LEFT_X }, - { .name = "vertical", .axis = GLFW_GAMEPAD_AXIS_LEFT_Y } + { .name = "vertical", .axis = GLFW_GAMEPAD_AXIS_LEFT_Y }, + { .name = "grabr", .axis = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER }, + { .name = "grabl", .axis = GLFW_GAMEPAD_AXIS_LEFT_TRIGGER }, + { .name = "h1", .axis = GLFW_GAMEPAD_AXIS_RIGHT_X }, + { .name = "v1", .axis = GLFW_GAMEPAD_AXIS_RIGHT_Y } }; static struct vg_achievement vg_achievements[] =