summaryrefslogtreecommitdiff
path: root/skey.c
diff options
context:
space:
mode:
authorknolax <1339802534.kk@gmail.com>2017-12-13 21:46:01 -0500
committerknolax <1339802534.kk@gmail.com>2017-12-13 21:46:01 -0500
commit8204f087fb816414efa07710de78f37b4864c06f (patch)
tree9ef3912973215c5fa8e07276089b0e69d4efaee6 /skey.c
parentb610bc48841769c957a150a608e766eec0f10039 (diff)
confirmed that adding the metadata allows X11 to autodetect skey_dev
Diffstat (limited to 'skey.c')
-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