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