glfw: renable getName
test
This commit is contained in:
parent
cc732dc7d7
commit
03a5cfc252
1 changed files with 6 additions and 7 deletions
13
src/key.zig
13
src/key.zig
|
@ -255,14 +255,13 @@ pub const Key = enum(c_int) {
|
|||
}
|
||||
};
|
||||
|
||||
// TODO: https://github.com/hexops/mach/issues/375
|
||||
// test "getName" {
|
||||
// const glfw = @import("main.zig");
|
||||
// try glfw.init(.{});
|
||||
// defer glfw.terminate();
|
||||
test "getName" {
|
||||
const glfw = @import("main.zig");
|
||||
try glfw.init(.{});
|
||||
defer glfw.terminate();
|
||||
|
||||
// _ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
|
||||
// }
|
||||
_ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
|
||||
}
|
||||
|
||||
test "getScancode" {
|
||||
const glfw = @import("main.zig");
|
||||
|
|
Loading…
Add table
Reference in a new issue