glfw: enums (#41)
* move key values in an enum * bitmask for key modifiers * export Key type and move key fns instead of exporting the key file, export Key enum. functions related to the Key type are moved into the enum as well so that they get exported with the type
This commit is contained in:
parent
388f3aa659
commit
1a3f391891
4 changed files with 380 additions and 225 deletions
|
|
@ -3,6 +3,8 @@ const testing = std.testing;
|
|||
|
||||
const c = @import("c.zig").c;
|
||||
|
||||
const key = @import("key.zig");
|
||||
|
||||
pub usingnamespace @import("consts.zig");
|
||||
pub const Error = @import("errors.zig").Error;
|
||||
const getError = @import("errors.zig").getError;
|
||||
|
|
@ -14,7 +16,6 @@ pub const GammaRamp = @import("GammaRamp.zig");
|
|||
pub const hat = @import("hat.zig");
|
||||
pub const Image = @import("Image.zig");
|
||||
pub const Joystick = @import("Joystick.zig");
|
||||
pub const key = @import("key.zig");
|
||||
pub const mod = @import("mod.zig");
|
||||
pub const Monitor = @import("Monitor.zig");
|
||||
pub const mouse_button = @import("mouse_button.zig");
|
||||
|
|
@ -22,6 +23,7 @@ pub const version = @import("version.zig");
|
|||
pub const VideoMode = @import("VideoMode.zig");
|
||||
pub const Window = @import("Window.zig");
|
||||
pub const Cursor = @import("Cursor.zig");
|
||||
pub const Key = key.Key;
|
||||
|
||||
pub usingnamespace @import("clipboard.zig");
|
||||
pub usingnamespace @import("opengl.zig");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue