mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 23:44:06 +00:00
Fixed potential NPE from Cursor.getCapabilities()
This commit is contained in:
parent
d4d39bf869
commit
d396992cc5
3 changed files with 8 additions and 3 deletions
|
|
@ -307,6 +307,8 @@ public class Keyboard {
|
|||
* @throws LWJGLException if the keyboard could not be created for any reason
|
||||
*/
|
||||
public static void create() throws LWJGLException {
|
||||
if (!Display.isCreated()) throw new IllegalStateException("Display must be created.");
|
||||
|
||||
create(Mouse.createImplementation());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue