|
|
Rockbox mail archiveSubject: peeking at the keysFrom: TP Diffenbach (rockbox_at_diffenbach.org) Date: 2003-07-28
I want to peek at the keys, without actually using up a keypress. get_button is
button.c, line 168:
if ( block || !queue_empty(&button_queue) ) {
kernal.c, line 97:
*ev = q->events[(q->read++) & QUEUE_LENGTH_MASK];
I've written a version of queue_wait that does everything queue_wait does EXCEPT
But if queue_wait can stand the time overhead of a function call, it might make
void queue_wait(struct event_queue *q, struct event *ev)
or (with the overhead of an extra operation) implement queue_wait_peek in terms of
Since queue_wait is called more often, it seems better to implement _peek in terms
-- Archos FM has a Rockbox!
Page was last modified "Jan 10 2012" The Rockbox Crew |