mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-01 19:13:58 +01:00
fix: increased buffersize to correct size (buffering + translation can increase needed size to 200 bytes at most)
This commit is contained in:
parent
91e5d8f3f1
commit
06cf180b71
|
|
@ -296,7 +296,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Keyboard_nEnableTranslation
|
|||
JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nEnableBuffer
|
||||
(JNIEnv * env, jclass clazz)
|
||||
{
|
||||
jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE);
|
||||
jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE*4);
|
||||
env->SetStaticObjectField(clazz, fid_readBuffer, newBuffer);
|
||||
return KEYBOARD_BUFFER_SIZE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue