glfw: deduplicate @cImport for type equivalence

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-17 20:14:09 -07:00
parent 74e2bddf93
commit b76e8d02f2
14 changed files with 31 additions and 13 deletions

View file

@ -2,7 +2,7 @@
//!
//! See glfw.getGamepadState for how these are used.
const c = @cImport(@cInclude("GLFW/glfw3.h"));
const c = @import("c.zig").c;
pub const a = C.GLFW_GAMEPAD_BUTTON_A;
pub const b = C.GLFW_GAMEPAD_BUTTON_B;