mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 06:53:59 +00: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
2 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue