Skip to content

Commit

Permalink
Fix[display]: create mouse and keyboard after fully initializing display
Browse files Browse the repository at this point in the history
  • Loading branch information
artdeell authored Feb 3, 2025
1 parent b32c36e commit f897c2d
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,8 +419,6 @@ public void destroy() {
glfwShowWindow(Window.handle);

if(parent != null) parent.setSize(displayWidth, displayHeight);
Mouse.create();
Keyboard.create();

// glfwSetWindowIcon(Window.handle, icons);
display_impl = new DisplayImplementation() {
Expand Down Expand Up @@ -734,7 +732,8 @@ public void bindTexImageToPbuffer(PeerInfo handle, int buffer) {


displayCreated = true;

Mouse.create();
Keyboard.create();
}

public static boolean isCreated() {
Expand Down

0 comments on commit f897c2d

Please sign in to comment.