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.ByteOrder;
import org.lwjgl.Display;
import org.lwjgl.*;
import org.lwjgl.Sys;
/**
@ -249,7 +249,7 @@ public class Keyboard {
public static void create() throws Exception {
if (created)
return;
if (!Display.isCreated())
if (!Window.isCreated())
throw new Exception("The display has not yet been created.");
if (!nCreate())
throw new Exception("The keyboard could not be created.");

View File

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