mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Only initialize Controller on win32
This commit is contained in:
parent
742559fe20
commit
7ecf2516fb
1 changed files with 3 additions and 1 deletions
|
|
@ -107,6 +107,8 @@ public final class Display {
|
|||
class_name = "org.lwjgl.opengl.LinuxDisplay";
|
||||
} else if (os_name.startsWith("Windows")) {
|
||||
class_name = "org.lwjgl.opengl.Win32Display";
|
||||
} else if (os_name.startsWith("Mac")) {
|
||||
class_name = "org.lwjgl.opengl.MacOSXDisplay";
|
||||
} else
|
||||
throw new IllegalStateException("The platform " + os_name + " is not supported");
|
||||
try {
|
||||
|
|
@ -577,7 +579,7 @@ public final class Display {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!Controller.isCreated() && !Boolean.getBoolean("org.lwjgl.opengl.Display.nocontroller")) {
|
||||
if (System.getProperty("os.name").startsWith("Win") && !Controller.isCreated() && !Boolean.getBoolean("org.lwjgl.opengl.Display.nocontroller")) {
|
||||
try {
|
||||
Controller.create();
|
||||
} catch (LWJGLException e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue