X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FBackend.java;h=256e9bb84f125353b8cedefb8a33022ad971a819;hb=623a1bd12877164ce2ae515e176b809d9c1a2041;hp=d7ef9119eefbe624ceb325995d6da0b1dff37401;hpb=b158962153f6f17e458a9846c4296ecd1644221b;p=nikiroo-utils.git diff --git a/src/jexer/backend/Backend.java b/src/jexer/backend/Backend.java index d7ef911..256e9bb 100644 --- a/src/jexer/backend/Backend.java +++ b/src/jexer/backend/Backend.java @@ -33,6 +33,7 @@ package jexer.backend; import java.util.List; + import jexer.event.TInputEvent; import jexer.io.Screen; import jexer.session.SessionInfo; @@ -64,10 +65,11 @@ public abstract class Backend { * Subclasses must provide an implementation to get keyboard, mouse, and * screen resize events. * - * @param timeout maximum amount of time to wait for an event - * @return events received, or an empty list if the timeout was reached + * @param queue list to append new events to + * @param timeout maximum amount of time (in millis) to wait for an + * event. 0 means to return immediately, i.e. perform a poll. */ - abstract public List getEvents(int timeout); + abstract public void getEvents(List queue, int timeout); /** * Subclasses must provide an implementation that closes sockets,