summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--skey.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/skey.c b/skey.c
index 00432c9..b820e01 100644
--- a/skey.c
+++ b/skey.c
@@ -149,6 +149,10 @@ static int __init skey_init (void) {
set_bit(EV_KEY, skey_dev->evbit);
set_bit(EV_REL, skey_dev->evbit);
set_bit(KEY_CAPSLOCK, skey_dev->keybit);
+ /*
+ * skey_dev->name and skey_dev->id are metadata that are required for X11
+ * and libinput to use skey_dev
+ */
//sets the name of skey_dev
skey_dev->name = skey_name;
//sets ids