diff options
| author | Zach DeCook <zachdecook@librem.one> | 2022-01-20 20:45:48 -0500 |
|---|---|---|
| committer | Zach DeCook <zachdecook@librem.one> | 2022-01-20 20:45:48 -0500 |
| commit | 7bcdc772c34b8e606d5355e8729e8a6236741dbe (patch) | |
| tree | bd78f9c0625fcf889740ea99fbd3a43d20506d23 /keyboard.c | |
| parent | 1ae1ac8ccd79716830f911fd97438d99d17998b2 (diff) | |
| download | suggpicker-7bcdc772c34b8e606d5355e8729e8a6236741dbe.tar.gz | |
input event codes: don't use
Diffstat (limited to 'keyboard.c')
| -rw-r--r-- | keyboard.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/keyboard.c b/keyboard.c index 85f412f..ee50827 100644 --- a/keyboard.c +++ b/keyboard.c @@ -1,4 +1,3 @@ -#include <linux/input-event-codes.h> #include <stdio.h> #include <sys/mman.h> #include "keyboard.h" @@ -162,11 +161,7 @@ kbd_draw_layout(struct kbd *kb) { next_key++; continue; } - if (next_key->type == Mod && kb->mods & next_key->code) { - kbd_draw_key(kb, next_key, Press); - } else { - kbd_draw_key(kb, next_key, Unpress); - } + kbd_draw_key(kb, next_key, Unpress); next_key++; } } |
