glfw: ziggify gamepad button enumerations

Helps hexops/mach#37

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-10-30 11:35:31 -07:00 committed by Stephen Gutekanst
parent 2154ee5aea
commit 210e12a437
4 changed files with 52 additions and 28 deletions

View file

@ -10,5 +10,7 @@ pub const GamepadAxis = enum(c_int) {
right_y = c.GLFW_GAMEPAD_AXIS_RIGHT_Y,
left_trigger = c.GLFW_GAMEPAD_AXIS_LEFT_TRIGGER,
right_trigger = c.GLFW_GAMEPAD_AXIS_RIGHT_TRIGGER,
last = .right_trigger,
};
/// Not in the GamepadAxis enumeration as it is a duplicate value which is forbidden.
pub const last = GamepadAxis.right_trigger;