about summary refs log tree commit diff
path: root/keyboard.h
diff options
context:
space:
mode:
authorZach DeCook <zachdecook@librem.one>2022-01-20 16:44:39 -0500
committerZach DeCook <zachdecook@librem.one>2022-01-20 21:08:36 -0500
commitb47bac490ec77a4870c344e576dc8a72f7af8e05 (patch)
tree92103eb8b0f5de100d148c94154da1c4bfb2b94a /keyboard.h
parent5c1b9655b8a76403991e3f0f81d53e1489295583 (diff)
downloadsuggpicker-b47bac490ec77a4870c344e576dc8a72f7af8e05.tar.gz
layout: Remove width
Diffstat (limited to 'keyboard.h')
-rw-r--r--keyboard.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/keyboard.h b/keyboard.h
index af3e2b1..520ca05 100644
--- a/keyboard.h
+++ b/keyboard.h
@@ -15,15 +15,6 @@ struct kbd;
 enum key_type {
 	Pad = 0, // Padding, not a pressable key
 	Code,    // A normal key emitting a keycode
-	Mod,     // A modifier key
-	Copy,    // Copy key, copies the unicode value specified in code (creates and
-	         // activates temporary keymap)
-	         // used for keys that are not part of the keymap
-	Layout,  // Layout switch to a specific layout
-	BackLayer, // Layout switch to the layout that was previously active
-	NextLayer, // Layout switch to the next layout in the layers sequence
-	Compose,   // Compose modifier key, switches to a specific associated layout
-	           // upon next keypress
 	EndRow,    // Incidates the end of a key row
 	Last,      // Indicated the end of a layout
 };
@@ -57,13 +48,10 @@ struct clr_scheme {
 
 struct key {
 	const char *label;       // primary label
-	const double width;      // relative width (1.0)
-	const enum key_type type;
 
+	const enum key_type type;
 	struct layout *layout;   // pointer back to the parent layout that holds this
 	                         // key
-	const uint32_t code_mod; /* modifier to force when this key is pressed */
-	uint8_t scheme;          // index of the scheme to use
 	bool reset_mod;          /* reset modifiers when clicked */
 
 	// actual coordinates on the surface (pixels), will be computed automatically