summaryrefslogtreecommitdiff
path: root/firmware/drivers
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-07-23 22:23:06 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-07-23 22:23:06 +0000
commit669edf680d75bfbd03ce3e762f40a115059d7db4 (patch)
tree11d2b1b992af544d6a1e7981bd052e168fbef274 /firmware/drivers
parentccf74d4df71f3bf96dcd403fa4ad22d353a63c2f (diff)
Now reports key release events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1423 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers')
-rw-r--r--firmware/drivers/button.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c
index 8ed445c0c3..8dec7696a8 100644
--- a/firmware/drivers/button.c
+++ b/firmware/drivers/button.c
@@ -87,6 +87,11 @@ static void button_tick(void)
else {
repeat = false;
count = 0;
+ /* Report that the key has been released */
+ if(lastbtn != btn)
+ {
+ queue_post(&button_queue, BUTTON_REL | lastbtn, NULL);
+ }
}
lastbtn = btn;