summary refs log tree commit diff
path: root/keyboard.h
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-01-21 10:38:04 -0500
committerZach DeCook <zachdecook@librem.one>2022-01-21 10:38:04 -0500
commit870d8db9bc3291bf5e4e9d2cb85d7d7b6c56952f (patch)
tree358e4aca8a19d0d024e3a14b5bbaea7c5c94440c /keyboard.h
parentb47bac490ec77a4870c344e576dc8a72f7af8e05 (diff)
downloadsuggpicker-870d8db9bc3291bf5e4e9d2cb85d7d7b6c56952f.tar.gz
layout: remove type
Diffstat (limited to 'keyboard.h')
-rw-r--r--keyboard.h22
1 files changed, 0 insertions, 22 deletions
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