/** Updates the stored data used by input devices. */
 public static void updateAllInputs() {
   keyboard.poll();
   mouse.poll();
   window.poll();
 }
Esempio n. 2
0
 /** Polls the keyboard for new keys that might be pressed this update. */
 public static void poll() {
   keyboard.poll();
 }