summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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);
-};