From 870d8db9bc3291bf5e4e9d2cb85d7d7b6c56952f Mon Sep 17 00:00:00 2001 From: Zach DeCook Date: Fri, 21 Jan 2022 10:38:04 -0500 Subject: layout: remove type --- keyboard.h | 22 ---------------------- 1 file changed, 22 deletions(-) (limited to 'keyboard.h') diff --git a/keyboard.h b/keyboard.h index 520ca05..84e6b8c 100644 --- a/keyboard.h +++ b/keyboard.h @@ -12,26 +12,6 @@ struct key; struct layout; struct kbd; -enum key_type { - Pad = 0, // Padding, not a pressable key - Code, // A normal key emitting a keycode - EndRow, // Incidates the end of a key row - Last, // Indicated the end of a layout -}; - -/* Modifiers passed to the virtual_keyboard protocol. They are based on - * wayland's wl_keyboard, which doesn't document them. - */ -enum key_modifier_type { - NoMod = 0, - Shift = 1, - CapsLock = 2, - Ctrl = 4, - Alt = 8, - Super = 64, - AltGr = 128, -}; - enum key_draw_type { Unpress = 0, Press, @@ -49,10 +29,8 @@ struct clr_scheme { struct key { const char *label; // primary label - const enum key_type type; struct layout *layout; // pointer back to the parent layout that holds this // key - bool reset_mod; /* reset modifiers when clicked */ // actual coordinates on the surface (pixels), will be computed automatically // for all keys -- cgit 1.4.1