New Window class, and major changes to Display

This commit is contained in:
Caspian Rychlik-Prince 2003-03-27 22:54:41 +00:00
parent d4b5248f0a
commit 24bfb0cf00
2 changed files with 4 additions and 5 deletions

View File

@ -35,7 +35,7 @@ package org.lwjgl.input;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.nio.ByteOrder; import java.nio.ByteOrder;
import org.lwjgl.Display; import org.lwjgl.*;
import org.lwjgl.Sys; import org.lwjgl.Sys;
/** /**
@ -249,7 +249,7 @@ public class Keyboard {
public static void create() throws Exception { public static void create() throws Exception {
if (created) if (created)
return; return;
if (!Display.isCreated()) if (!Window.isCreated())
throw new Exception("The display has not yet been created."); throw new Exception("The display has not yet been created.");
if (!nCreate()) if (!nCreate())
throw new Exception("The keyboard could not be created."); throw new Exception("The keyboard could not be created.");

View File

@ -32,8 +32,7 @@
package org.lwjgl.input; package org.lwjgl.input;
import org.lwjgl.Display; import org.lwjgl.*;
import org.lwjgl.Sys;
/** /**
* $Id$ * $Id$
@ -102,7 +101,7 @@ public class Mouse {
public static void create() throws Exception { public static void create() throws Exception {
if (created) if (created)
return; return;
if (!Display.isCreated()) if (!Window.isCreated())
throw new Exception("The display has not yet been created."); throw new Exception("The display has not yet been created.");
if (!nCreate()) if (!nCreate())
throw new Exception("The mouse could not be created."); throw new Exception("The mouse could not be created.");