1
0
forked from Clones/Controlify

✏️ Add extra details to controller init crash report

This commit is contained in:
isXander
2023-05-05 17:49:25 +01:00
parent 740ae1c77a
commit 25586b45ac

View File

@ -83,6 +83,8 @@ public interface Controller<S extends ControllerState, C extends ControllerConfi
category.setDetail("Joystick ID", joystickId);
category.setDetail("Controller identification", hidInfo.type());
category.setDetail("HID path", hidInfo.hidDevice().map(HidDevice::getPath).orElse("N/A"));
category.setDetail("HID service status", Controlify.instance().controllerHIDService().isDisabled() ? "Disabled" : "Enabled");
category.setDetail("GLFW name", Optional.ofNullable(GLFW.glfwGetJoystickName(joystickId)).orElse("N/A"));
throw new ReportedException(crashReport);
}
}