From c5cf045aabf04fe41831fd6d3902633c96a70f5c Mon Sep 17 00:00:00 2001 From: jyn Date: Thu, 26 Dec 2024 13:55:59 -0500 Subject: [PATCH] don't discard unknown codes --- src/device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/device.c b/src/device.c index c7bc5fb..6d4baba 100644 --- a/src/device.c +++ b/src/device.c @@ -491,7 +491,8 @@ struct device_event *device_read_event(struct device *dev) && ev.code <= BTN_TOOL_QUADTAP); else { keyd_log("r{ERROR:} unsupported evdev code: 0x%x\n", ev.code); - return NULL; + /* passthrough the code unchanged; we won't be able to remap it + but we can still send the input. */ } }