diff --git a/modifiers.h b/modifiers.h index bde7be7..a26868a 100644 --- a/modifiers.h +++ b/modifiers.h @@ -199,7 +199,7 @@ modifier_operation_parse(const char* name) if (strcmp(name, "reset") == 0) { return MODOP_UNSET; } - if (strcmp(name, "togggle") == 0) { + if (strcmp(name, "toggle") == 0) { return MODOP_TOGGLE; } return -1; diff --git a/nodes/evdev.c b/nodes/evdev.c index f8aeeec..ce8891c 100644 --- a/nodes/evdev.c +++ b/nodes/evdev.c @@ -47,7 +47,7 @@ handle_io(EventPositionBase * self, int fd, bool is_output) monotime = absolute_time_sub_relative(realtime, realtime_adj); EventData data = { .code = { - .ns = 1, + .ns = node->namespace, .major = buf.type, .minor = buf.code, }, diff --git a/nodes/getchar.c b/nodes/getchar.c index a633651..7d6696d 100644 --- a/nodes/getchar.c +++ b/nodes/getchar.c @@ -29,7 +29,7 @@ handle_io(EventPositionBase * self, int fd, bool is_output) }, .ttl = 100, .priority = 10, - .payload = buf[0], + .payload = (unsigned char) buf[0], .modifiers = EMPTY_MODIFIER_SET, .time = get_current_time(), };