forked from Clones/Controlify
✏️ Format unknown HID identifies as hex for easier searching
This commit is contained in:
@ -1,4 +1,14 @@
|
||||
package dev.isxander.controlify.hid;
|
||||
|
||||
import java.util.HexFormat;
|
||||
|
||||
public record HIDIdentifier(int vendorId, int productId) {
|
||||
@Override
|
||||
public String toString() {
|
||||
var hex = HexFormat.of().withPrefix("0x");
|
||||
return "HIDIdentifier[" +
|
||||
"vendorId=" + hex.toHexDigits(vendorId) +
|
||||
", productId=" + hex.toHexDigits(productId) +
|
||||
']';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user