PMD code sweep, #6 don't add MyWindow twice to MyApplication
[fanfix.git] / src / jexer / backend / Backend.java
index d1863288c54dabd8dfe4f0bb5b59f9356397db8b..20efa7eeaec8ad913387a4a546dcab512f41d512 100644 (file)
@@ -60,6 +60,13 @@ public interface Backend {
      */
     public void flushScreen();
 
+    /**
+     * Check if there are events in the queue.
+     *
+     * @return if true, getEvents() has something to return to the application
+     */
+    public boolean hasEvents();
+
     /**
      * Classes must provide an implementation to get keyboard, mouse, and
      * screen resize events.