X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2Fbackend%2FBackend.java;h=66c7cf3567a1200ec4dc4a54b6bccdd1273f7604;hb=4328bb42c10743287dad5cf045f059ad109eb540;hp=15fcf62620eff7254c73117d8fe8b9c02a521b59;hpb=df8de03f80590dde35f26616db91ad6163007b7e;p=nikiroo-utils.git diff --git a/src/jexer/backend/Backend.java b/src/jexer/backend/Backend.java index 15fcf62..66c7cf3 100644 --- a/src/jexer/backend/Backend.java +++ b/src/jexer/backend/Backend.java @@ -32,6 +32,8 @@ */ package jexer.backend; +import java.util.List; + import jexer.event.TInputEvent; import jexer.io.Screen; import jexer.session.SessionInfo; @@ -63,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 + * @param timeout maximum amount of time (in millis) to wait for an + * event. 0 means to return immediately, i.e. perform a poll. * @return events received, or an empty list if the timeout was reached */ - abstract public TInputEvent [] getEvents(int timeout); + abstract public List getEvents(int timeout); /** * Subclasses must provide an implementation that closes sockets,