mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Renamed LWJGLErrorException to LWJGLException
This commit is contained in:
parent
63b33930b1
commit
9d55bbb302
14 changed files with 77 additions and 77 deletions
|
|
@ -41,7 +41,7 @@ import java.util.Map;
|
|||
import org.lwjgl.BufferUtils;
|
||||
import org.lwjgl.Sys;
|
||||
import org.lwjgl.opengl.Window;
|
||||
import org.lwjgl.LWJGLErrorException;
|
||||
import org.lwjgl.LWJGLException;
|
||||
|
||||
/**
|
||||
* $Id$
|
||||
|
|
@ -285,9 +285,9 @@ public class Keyboard {
|
|||
* "Create" the keyboard. The display must first have been created. The
|
||||
* reason for this is so the keyboard has a window to "focus" in.
|
||||
*
|
||||
* @throws LWJGLErrorException if the keyboard could not be created for any reason
|
||||
* @throws LWJGLException if the keyboard could not be created for any reason
|
||||
*/
|
||||
public static void create() throws LWJGLErrorException {
|
||||
public static void create() throws LWJGLException {
|
||||
if (!Window.isCreated())
|
||||
throw new IllegalStateException("Window must be created before you can create Keyboard");
|
||||
if (!initialized)
|
||||
|
|
@ -301,7 +301,7 @@ public class Keyboard {
|
|||
/**
|
||||
* Native method to create the keyboard
|
||||
*/
|
||||
private static native void nCreate() throws LWJGLErrorException;
|
||||
private static native void nCreate() throws LWJGLException;
|
||||
|
||||
/**
|
||||
* @return true if the keyboard has been created
|
||||
|
|
@ -389,7 +389,7 @@ public class Keyboard {
|
|||
* Enable keyboard translation. Must be called after the keyboard is created,
|
||||
* and keyboard buffering must be enabled.
|
||||
*/
|
||||
public static void enableTranslation() throws LWJGLErrorException {
|
||||
public static void enableTranslation() throws LWJGLException {
|
||||
if (!created)
|
||||
throw new IllegalStateException("Keyboard must be created before you can read events");
|
||||
if (readBuffer == null)
|
||||
|
|
@ -401,12 +401,12 @@ public class Keyboard {
|
|||
/**
|
||||
* Native method to enable the translation buffer
|
||||
*/
|
||||
private static native void nEnableTranslation() throws LWJGLErrorException;
|
||||
private static native void nEnableTranslation() throws LWJGLException;
|
||||
|
||||
/**
|
||||
* Enable keyboard buffering. Must be called after the keyboard is created.
|
||||
*/
|
||||
public static void enableBuffer() throws LWJGLErrorException {
|
||||
public static void enableBuffer() throws LWJGLException {
|
||||
if (!created)
|
||||
throw new IllegalStateException("Keyboard must be created before you can enable buffering");
|
||||
readBuffer = BufferUtils.createByteBuffer(4*BUFFER_SIZE);
|
||||
|
|
@ -419,7 +419,7 @@ public class Keyboard {
|
|||
* @return the event buffer,
|
||||
* or null if no buffer can be allocated
|
||||
*/
|
||||
private static native void nEnableBuffer() throws LWJGLErrorException;
|
||||
private static native void nEnableBuffer() throws LWJGLException;
|
||||
|
||||
/**
|
||||
* Checks to see if a key is down.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue