about summary refs log tree commit diff
path: root/src/input.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.zig')
-rw-r--r--src/input.zig12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input.zig b/src/input.zig
index 31fda2e..2b22c9c 100644
--- a/src/input.zig
+++ b/src/input.zig
@@ -22,7 +22,7 @@ const endian = @import("builtin").target.cpu.arch.endian();
 const c = @import("cimport.zig");
 const std = @import("std");
 
-const keys = [_][]const u8{
+const keys = [_][:0]const u8{
     // Printable keys
     "SPACE", "APOSTROPHE", "COMMA", "MINUS", "PERIOD", "SLASH",
     "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "SEMICOLON", "EQUAL",
@@ -45,7 +45,7 @@ const keys = [_][]const u8{
 };
 
 /// Keyboard key enumeration: https://www.glfw.org/docs/latest/group__keys.html
-pub const Key = @Type(.{ .Enum = .{
+pub const Key = @Type(.{ .@"enum" = .{
     .tag_type = c_int,
     .fields = blk: {
         var fields: [keys.len]EnumField = undefined;
@@ -85,8 +85,8 @@ pub const Mods = packed struct {
         const integer: MaskInt = @intCast(mask);
         return @bitCast(Mask{
             .integer = switch (endian) {
-                .Big => @bitReverse(integer),
-                .Little => integer,
+                .big => @bitReverse(integer),
+                .little => integer,
             },
         });
     }
@@ -95,8 +95,8 @@ pub const Mods = packed struct {
     pub fn toInt(self: Mods) c_int {
         const integer = @as(Mask, @bitCast(self)).integer;
         return @intCast(switch (endian) {
-            .Big => @bitReverse(integer),
-            .Little => integer,
+            .big => @bitReverse(integer),
+            .little => integer,
         });
     }
 };