Reverted event value checking (causes no barcodes to be received :( )

This commit is contained in:
Andrew Brooks 2018-01-27 14:30:15 -06:00
parent c303b1abb4
commit 6be9728865
1 changed files with 1 additions and 2 deletions

View File

@ -107,9 +107,8 @@ decode_next_event(int fd)
/* /*
* If we received a keypress event, decode the keycode responsible. * If we received a keypress event, decode the keycode responsible.
* (Event value 1 = key depressed)
*/ */
if (event.type == EV_KEY && event.value == 1) { if (event.type == EV_KEY) {
switch (event.code) { switch (event.code) {
#define DECODE_KEY(key_name, decode_char) case (KEY_##key_name): return decode_char #define DECODE_KEY(key_name, decode_char) case (KEY_##key_name): return decode_char
DECODE_KEY(ENTER, '\n'); DECODE_KEY(ENTER, '\n');