Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: peeking at the keys
From: Linus Nielsen Feltzing (linus_at_haxx.se)
Date: 2003-07-28


TP Diffenbach wrote:
> I want to peek at the keys, without actually using up a keypress. get_button is
> written in terms of queue_wait, which advances the queue->read pointer:

(snip snip)

> Since queue_wait is called more often, it seems better to implement _peek in terms
> of queue_wait, but I await your advice.
>

I think _peek() should be implemented separately, so it won't affect the
performance of _wait(). However, the primary question is: why do you
need this feature in the first place?

Linus



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa