RE: Asynchronous keyboard callbacks (was: [AD] Proposal for an input model) |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> Presumably executing
> read() on the keyboard's file descriptor will block until
> there is some
> input available?
blocking reads are the standard way to do this, yes. either
that or select. select gives you the ability to timeout as well,
which i think can't be done with read. though in this case
there probably is no advantage to this.
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |