back to 1.19 - silly me

This commit is contained in:
Brian Matzon 2003-05-08 21:27:12 +00:00
parent 900fc0e8fe
commit b7a151c48b
1 changed files with 2 additions and 6 deletions

View File

@ -384,11 +384,7 @@ public class Keyboard {
*/
public static boolean isKeyDown(int key) {
assert created : "The keyboard has not been created.";
// if (readBuffer != null) {
// return Keyboard.key == key;
// } else {
return keyDownBuffer.get(key) != 0;
// }
return keyDownBuffer.get(key) != 0;
}
/**
@ -429,4 +425,4 @@ public class Keyboard {
} else
return false;
}
}
}