dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: peeking at the keys

Re: peeking at the keys

From: Linus Nielsen Feltzing <>
Date: Mon, 28 Jul 2003 01:26:20 +0200

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?

Received on 2003-07-28

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy