X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_config.h;h=e1784ec1900b06100609e2093ddfca995b5d6b09;hb=5ecf9cca8b5b9bf876d7e7c7fde03d5b187bb42b;hp=fc153edb968847b1607b55b40dba2eaf9de3aa3e;hpb=a1a05787ada52089f30c533fb26b745554c07512;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/vg_config.h b/vg_config.h index fc153ed..e1784ec 100644 --- a/vg_config.h +++ b/vg_config.h @@ -1,5 +1,9 @@ -// Copyright (C) 2021 Harry Godden (hgn) - All Rights Reserved +/* + * Copyright (C) 2021-2022 Mt.ZERO Software, Harry Godden - All Rights Reserved + */ + #define VG_CONFIG +#include "vg/vg.h" static struct button_binding vg_button_binds[] = { @@ -13,7 +17,16 @@ 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", .controller = GLFW_GAMEPAD_BUTTON_B } + { .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 }, + { "reset", GLFW_GAMEPAD_BUTTON_LEFT_BUMPER } }; static struct axis_binding vg_axis_binds[] =