Don't return -1 on keyboard read failure

This commit is contained in:
Elias Naur 2003-02-12 11:27:48 +00:00
parent eb7e142b67
commit a36f15cc0e
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_input_Keyboard_nRead
UINT virt_key = MapVirtualKey(rgdod[i].dwOfs, 1);
if (virt_key != 0) {
if (!GetKeyboardState(state))
return -1;
return 0;
num_chars = ToUnicode(virt_key,
rgdod[i].dwOfs,
state,