Added notes to Mouse.poll() and Keyboard.poll() that Display.processMessages() (or Display.update()) must be called to receive new input state

This commit is contained in:
Elias Naur 2008-03-02 18:16:39 +00:00
parent f2b73f57de
commit 65309d759c
3 changed files with 9 additions and 3 deletions

View file

@ -363,6 +363,9 @@ public class Keyboard {
* <code>getEventKeyState</code> - finally use <code>getEventCharacter</code> to get the
* character for that event.
*
* NOTE: This method does not query the operating system for new events. To do that,
* Display.processMessages() (or Display.update()) must be called first.
*
* @see org.lwjgl.input.Keyboard#isKeyDown(int key)
* @see org.lwjgl.input.Keyboard#next()
* @see org.lwjgl.input.Keyboard#getEventKey()