projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model fmt & heisenbug
[carveJwlIkooP6JGAAIwe30JlM.git]
/
vg_config.h
diff --git
a/vg_config.h
b/vg_config.h
index e24699e5a25f894f5147a00cb8a0e565f1d773f6..8b1ea59eb7d2748fcd0ae3b4d5d4bbae00fe80be 100644
(file)
--- a/
vg_config.h
+++ b/
vg_config.h
@@
-5,7
+5,7
@@
#define VG_CONFIG
#include "vg/vg.h"
#define VG_CONFIG
#include "vg/vg.h"
-
static
struct button_binding vg_button_binds[] =
+
VG_STATIC
struct button_binding vg_button_binds[] =
{
{ .name = "primary", .bind = GLFW_MOUSE_BUTTON_LEFT },
{ .name = "secondary", .bind = GLFW_MOUSE_BUTTON_RIGHT },
{
{ .name = "primary", .bind = GLFW_MOUSE_BUTTON_LEFT },
{ .name = "secondary", .bind = GLFW_MOUSE_BUTTON_RIGHT },
@@
-17,18
+17,20
@@
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 = "down", .bind = GLFW_KEY_F },
{ .name = "yawl", .bind = GLFW_KEY_Q },
{ .name = "yawr", .bind = GLFW_KEY_E },
- { .name = "push", .bind = GLFW_KEY_T }
+ { .name = "push", .bind = GLFW_KEY_T },
+ { .name = "menu", .bind = GLFW_KEY_ESCAPE }
};
};
-
static
struct button_binding vg_controller_binds[] =
+
VG_STATIC
struct button_binding vg_controller_binds[] =
{
{ "jump", GLFW_GAMEPAD_BUTTON_A },
{ "break", GLFW_GAMEPAD_BUTTON_B },
{ "switchmode", GLFW_GAMEPAD_BUTTON_Y },
{
{ "jump", GLFW_GAMEPAD_BUTTON_A },
{ "break", GLFW_GAMEPAD_BUTTON_B },
{ "switchmode", GLFW_GAMEPAD_BUTTON_Y },
- { "reset", GLFW_GAMEPAD_BUTTON_LEFT_BUMPER }
+ { "reset", GLFW_GAMEPAD_BUTTON_LEFT_BUMPER },
+ { "menu", GLFW_GAMEPAD_BUTTON_BACK }
};
};
-
static
struct axis_binding vg_axis_binds[] =
+
VG_STATIC
struct axis_binding vg_axis_binds[] =
{
{ .name = "lookh", .axis = GLFW_GAMEPAD_AXIS_LEFT_X },
{ .name = "lookv", .axis = GLFW_GAMEPAD_AXIS_LEFT_Y },
{
{ .name = "lookh", .axis = GLFW_GAMEPAD_AXIS_LEFT_X },
{ .name = "lookv", .axis = GLFW_GAMEPAD_AXIS_LEFT_Y },
@@
-38,6
+40,6
@@
static struct axis_binding vg_axis_binds[] =
{ .name = "grab", .axis = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER },
};
{ .name = "grab", .axis = GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER },
};
-
static
struct vg_achievement vg_achievements[] =
+
VG_STATIC
struct vg_achievement vg_achievements[] =
{
};
{
};