You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Throws an ArrayIndexOutOfBoundsException when any key that GLFW does not support is pressed.
i.e. when keycode -1 is sent, it's still being used to index into the keystateBitfields array.
Steps to reproduce
Open any scene
On windows, hit a function key without the fn key, so that it does the action, such as increasing/decreasing volume/brightness.
What you expected would happen
For the key to be ignored.
What actually happens
An ArrayIndexOutOfBoundsException is thrown
Error logs
Exceptioninthread"main"java.lang.ArrayIndexOutOfBoundsException: Index -1outofboundsforlength400atinput.Keyboard.resetKeyDownBit(Keyboard.java:64)
atinput.Keyboard.lambda$setupCallbacks$0(Keyboard.java:41)
atorg.lwjgl.glfw.GLFWKeyCallbackI.callback(GLFWKeyCallbackI.java:44)
atorg.lwjgl.system.JNI.invokeV(NativeMethod)
atorg.lwjgl.glfw.GLFW.glfwPollEvents(GLFW.java:3397)
atgraphics.Window.showWindow(Window.java:205)
atutil.Engine.showWindow(Engine.java:55)
atscenes.AudioDemo.main(AudioDemo.java:21)
The text was updated successfully, but these errors were encountered:
Throws an ArrayIndexOutOfBoundsException when any key that GLFW does not support is pressed.
i.e. when keycode
-1
is sent, it's still being used to index into thekeystateBitfields
array.Steps to reproduce
fn
key, so that it does the action, such as increasing/decreasing volume/brightness.What you expected would happen
For the key to be ignored.
What actually happens
An ArrayIndexOutOfBoundsException is thrown
Error logs
The text was updated successfully, but these errors were encountered: