Added four boolean properties to alter default behaviour in non-standard apps
This commit is contained in:
parent
70e36d8058
commit
7c4412fcf3
|
@ -421,7 +421,8 @@ public final class Window {
|
|||
GL11.glViewport(0, 0, width, height);
|
||||
|
||||
// Automatically create mouse, keyboard and controller
|
||||
if (!Mouse.isCreated()) {
|
||||
if (!Boolean.getBoolean("org.lwjgl.opengl.Window.noinput")) {
|
||||
if (!Mouse.isCreated() && !Boolean.getBoolean("org.lwjgl.opengl.Window.nomouse")) {
|
||||
try {
|
||||
Mouse.create();
|
||||
createdMouse = true;
|
||||
|
@ -434,7 +435,7 @@ public final class Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!Keyboard.isCreated()) {
|
||||
if (!Keyboard.isCreated() && !Boolean.getBoolean("org.lwjgl.opengl.Window.nokeyboard")) {
|
||||
try {
|
||||
Keyboard.create();
|
||||
createdKeyboard = true;
|
||||
|
@ -448,7 +449,7 @@ public final class Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
if (!Controller.isCreated()) {
|
||||
if (!Controller.isCreated() && !Boolean.getBoolean("org.lwjgl.opengl.Window.nocontroller")) {
|
||||
try {
|
||||
Controller.create();
|
||||
createdController = true;
|
||||
|
@ -461,6 +462,7 @@ public final class Window {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Destroy the Window. After this call, there will be no current GL rendering context,
|
||||
|
@ -545,4 +547,6 @@ public final class Window {
|
|||
}
|
||||
|
||||
private static native void nSetVSyncEnabled(boolean sync);
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue