Skip to content

Commit 6c870b8

Browse files
shinyquagsire23philipl
authored andcommitted
evdevremapkeys: copy input_props from the original device to the new one
This improves the fidelity of the new device's representation of the original one. Signed-off-by: Philip Langdale <philipl@overt.org>
1 parent 85a6ef3 commit 6c870b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

evdevremapkeys/evdevremapkeys.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ def flatmap(lst: Collection[Collection[Any]]):
365365
extended.update([remapping["code"]])
366366

367367
caps[ecodes.EV_KEY] = list(extended)
368-
output = UInput(caps, name=device["output_name"])
368+
output = UInput(caps, input_props=input.input_props(), name=device["output_name"])
369369
print("Registered: %s, %s, %s" % (input.name, input.path, input.phys), flush=True)
370370
task = loop.create_task(
371371
handle_events(input, output, remappings, modifier_groups), name=input.name

0 commit comments

Comments
 (0)