summary refs log tree commit diff
path: root/src/input.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/input.zig')
-rw-r--r--src/input.zig12
1 files changed, 0 insertions, 12 deletions
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);
-};