1
0
forked from Clones/Controlify

compound joysticks, button guide in screens, improve API

This commit is contained in:
isXander
2023-03-26 18:13:02 +01:00
parent de210df84f
commit 0d9321e3ba
55 changed files with 1188 additions and 287 deletions

View File

@ -36,7 +36,7 @@ public class ControllerHIDService implements HidServicesListener {
services.scan();
try {
// wait for scan to complete on separate thread
Thread.sleep(800);
Thread.sleep(1000);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
@ -78,5 +78,8 @@ public class ControllerHIDService implements HidServicesListener {
}
public record ControllerHIDInfo(ControllerType type, Optional<String> path) {
public String createControllerUID() {
return UUID.nameUUIDFromBytes(path().get().getBytes()).toString();
}
}
}