Removed dead code
This commit is contained in:
parent
f05f16cc27
commit
6435369d23
|
@ -194,11 +194,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nRead
|
|||
int num_chars;
|
||||
int num_events = 0;
|
||||
|
||||
do {
|
||||
ret = lpdiKeyboard->Acquire();
|
||||
if (ret != DI_OK && ret != S_FALSE)
|
||||
return 0;
|
||||
} while (ret != DI_OK && ret != S_FALSE);
|
||||
ret = lpdiKeyboard->Acquire();
|
||||
if (ret != DI_OK && ret != S_FALSE)
|
||||
return 0;
|
||||
|
||||
ret = lpdiKeyboard->GetDeviceData(
|
||||
sizeof(DIDEVICEOBJECTDATA),
|
||||
|
@ -307,4 +305,4 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nEnableBuffer
|
|||
jobject newBuffer = env->NewDirectByteBuffer(&readBuffer, KEYBOARD_BUFFER_SIZE);
|
||||
env->SetStaticObjectField(clazz, fid_readBuffer, newBuffer);
|
||||
return KEYBOARD_BUFFER_SIZE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue