New Window class, and major changes to Display
This commit is contained in:
parent
d4b5248f0a
commit
24bfb0cf00
|
@ -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.");
|
||||
|
|
|
@ -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.");
|
||||
|
|
Loading…
Reference in New Issue