Added four boolean properties to alter default behaviour in non-standard apps

This commit is contained in:
Caspian Rychlik-Prince 2004-04-03 21:05:57 +00:00
parent 70e36d8058
commit 7c4412fcf3
1 changed files with 65 additions and 61 deletions

View File

@ -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);
}