aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-10-28 16:49:58 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-10-28 16:49:58 +0700
commit54468a19adb06eff78a71d425e443171df24b5bb (patch)
tree9298940eb76770449eabe9996c8bbe7a02456764 /src
parent43c34a4c0a5e85be645c13af7cb8b250591a7d8f (diff)
downloadgfz-54468a19adb06eff78a71d425e443171df24b5bb.tar.gz
Remove broken comptime string key map
Diffstat (limited to 'src')
-rw-r--r--src/gfz.zig1
-rw-r--r--src/input.zig12
2 files changed, 0 insertions, 13 deletions
diff --git a/src/gfz.zig b/src/gfz.zig
index 026d491..e68e158 100644
--- a/src/gfz.zig
+++ b/src/gfz.zig
@@ -132,7 +132,6 @@ pub fn rawMouseMotionSupported() Error!bool {
pub const Window = @import("Window.zig");
pub const Key = input.Key;
-pub const KeyMap = input.KeyMap;
test {
try init();
diff --git a/src/input.zig b/src/input.zig
index 8900252..172f965 100644
--- a/src/input.zig
+++ b/src/input.zig
@@ -16,7 +16,6 @@
// You should have received a copy of the GNU Lesser General Public License
// along with gfz. If not, see <https://www.gnu.org/licenses/>.
-const ComptimeStringMap = std.ComptimeStringMap;
const EnumField = TypeInfo.EnumField;
const TypeInfo = std.builtin.TypeInfo;
const glfw = @import("cimport.zig");
@@ -62,14 +61,3 @@ pub const Key = @Type(TypeInfo{
.is_exhaustive = true,
}
});
-
-/// Mapping of name to keyboard key
-pub const KeyMap = blk: {
- var map: [keys.len]struct {
- @"0": []const u8,
- @"1": Key,
- } = undefined;
- for (keys) |name, i|
- map[i] = .{ name, @field(Key, name) };
- break :blk ComptimeStringMap(Key, map);
-};