1 Jan 2004 19:33
cvs: firmware/drivers button.c,1.40,1.41
J?rg Hohensohn <hohensoh <at> users.sourceforge.net>
2004-01-01 18:33:54 GMT
2004-01-01 18:33:54 GMT
Update of /cvsroot/rockbox/firmware/drivers
In directory sc8-pr-cvs1:/tmp/cvs-serv14378/firmware/drivers
Modified Files:
button.c
Log Message:
nicer handling of button_flip(), swap stored value, too, and avoid race condition
Index: button.c
===================================================================
RCS file: /cvsroot/rockbox/firmware/drivers/button.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -b -r1.40 -r1.41
--- button.c 20 Dec 2003 10:00:37 -0000 1.40
+++ button.c 1 Jan 2004 18:33:52 -0000 1.41
<at> <at> -34,6 +34,7 <at> <at>
struct event_queue button_queue;
long last_keypress;
+static int lastbtn;
#ifdef HAVE_RECORDER_KEYPAD
static bool flipped; /* bottons can be flipped to match the LCD flip */
#endif
<at> <at> -59,7 +60,6 <at> <at>
{
static int tick = 0;
static int count = 0;
- static int lastbtn = 0;
static int repeat_speed = REPEAT_INTERVAL_START;
(Continue reading)
RSS Feed