mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-26 15:15:40 +01:00
Restore old Mouse.create/Keyboard.create behavior which is to ignore create() when already created.
This commit is contained in:
parent
1bb95e94f4
commit
70e3294b7b
|
|
@ -290,7 +290,7 @@ public class Keyboard {
|
|||
*/
|
||||
private static void create(InputImplementation impl) throws LWJGLException {
|
||||
if (created)
|
||||
throw new IllegalStateException("Destroy the Keyboard first.");
|
||||
return;
|
||||
if (!initialized)
|
||||
initialize();
|
||||
implementation = impl;
|
||||
|
|
|
|||
|
|
@ -249,7 +249,7 @@ public class Mouse {
|
|||
*/
|
||||
private static void create(InputImplementation impl) throws LWJGLException {
|
||||
if (created)
|
||||
throw new IllegalStateException("Destroy the mouse first.");
|
||||
return;
|
||||
if (!initialized)
|
||||
initialize();
|
||||
implementation = impl;
|
||||
|
|
|
|||
Loading…
Reference in a new issue