Skip to content

Commit

Permalink
[linuxinput] show event node in label
Browse files Browse the repository at this point in the history
This makes it easier to figure out which thing is which device in the
presence of symlinks or multiple identical devices.
  • Loading branch information
t-8ch committed May 2, 2021
1 parent a15b125 commit 539b412
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ private boolean enrichDevice(DiscoveryResultBuilder builder, File inputDevice) {
String labelFromDevice = device.getName();
boolean isKeyboard = device.has(EvdevLibrary.Type.KEY);
if (labelFromDevice != null) {
label = labelFromDevice;
label = String.format("%s (%s)", labelFromDevice, inputDevice.getName());
}
return isKeyboard;
} finally {
Expand Down

0 comments on commit 539b412

Please sign in to comment.