suggestion picker: a persistent layer to complement virtual keyboards like wvkbd
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