Skip to content

Commit

Permalink
don't discard unknown codes
Browse files Browse the repository at this point in the history
  • Loading branch information
jyn514 committed Dec 26, 2024
1 parent 9876a5f commit c5cf045
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
}
}

Expand Down

0 comments on commit c5cf045

Please sign in to comment.