From ab60fbc096674da013e87c769f2d79a4f30944f6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 11 Dec 2024 11:14:36 -0800 Subject: [PATCH] apprt/glfw: add noop keyboardLayout func to satisfy tests and builds --- src/apprt/glfw.zig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/apprt/glfw.zig b/src/apprt/glfw.zig index bf4c44ad0..64b0cbe81 100644 --- a/src/apprt/glfw.zig +++ b/src/apprt/glfw.zig @@ -409,6 +409,13 @@ pub const App = struct { } } + pub fn keyboardLayout(self: *const App) input.KeyboardLayout { + _ = self; + + // Not supported by glfw + return .unknown; + } + /// Mac-specific settings. This is only enabled when the target is /// Mac and the artifact is a standalone exe. We don't target libs because /// the embedded API doesn't do windowing.