summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 4e93a8a..f019a61 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -22,6 +22,7 @@ pub const c = @cImport({
 });
 
 const Loca = @import("loca").Loca;
+const Key = gf.Key;
 const Window = gf.Window;
 const Scores = misc.Scores;
 const al = @import("zeal");
@@ -41,9 +42,9 @@ fn resizeWindow(window: Window, width: c_int, height: c_int) void {
     c.resizeWindow(game, width, height);
 }
 
-fn handleKey(window: Window, key: c_int, scancode: c_int,
+fn handleKey(window: Window, key: Key, scancode: c_int,
              action: c_int, mods: c_int) void {
-    c.handleKey(game, key, action, mods);
+    c.handleKey(game, @enumToInt(key), action, mods);
 }
 
 fn look(window: Window, xpos: f64, ypos: f64) void {