Made Keyboard.poll behave like win32 version
This commit is contained in:
parent
80760d350f
commit
2b814af9f7
|
@ -194,7 +194,7 @@ int checkKeyEvents(unsigned char *result_buf) {
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_input_Keyboard_nPoll
|
JNIEXPORT void JNICALL Java_org_lwjgl_input_Keyboard_nPoll
|
||||||
(JNIEnv * env, jclass clazz, jint buf)
|
(JNIEnv * env, jclass clazz, jint buf)
|
||||||
{
|
{
|
||||||
checkKeyEvents(NULL);
|
//checkKeyEvents(NULL);
|
||||||
memcpy((unsigned char*)buf, key_buf, KEYBOARD_SIZE*sizeof(unsigned char));
|
memcpy((unsigned char*)buf, key_buf, KEYBOARD_SIZE*sizeof(unsigned char));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue