woops, lasttn does need to be global

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15453 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jonathan Gordon 2007-11-04 10:01:27 +00:00
parent 2ecb3231c6
commit 5af8e940e1

View file

@ -86,13 +86,13 @@ bool remote_button_hold(void) {
}
#endif
static int lastbtn;
void button_event(int key, bool pressed)
{
int new_btn = 0;
int diff = 0;
int data = 0;
static int count = 0;
static int lastbtn;
static int repeat_speed = REPEAT_INTERVAL_START;
static int repeat_count = 0;
static bool repeat = false;