Prep for 2019 release
[fanfix.git] / src / jexer / backend / Backend.java
index d1863288c54dabd8dfe4f0bb5b59f9356397db8b..8bd1816cd55053b461c0187896db966ac5aa492c 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2017 Kevin Lamonte
+ * Copyright (C) 2019 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -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.