diff options
author | Magnus Holmgren <magnushol@gmail.com> | 2010-11-14 13:13:06 +0000 |
---|---|---|
committer | Magnus Holmgren <magnushol@gmail.com> | 2010-11-14 13:13:06 +0000 |
commit | 4480e3a82cc12bddde528331f0838f4f232a148c (patch) | |
tree | 6e2b7d65ee2be4655f534715fb278bcf42c87bce /firmware/drivers/button.c | |
parent | 91beb7a46d45005f284b7662563664ef5c193e2f (diff) |
Hopefully fix FS#11696: scrollwheel doesn't respond in some cases.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28584 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/button.c')
-rw-r--r-- | firmware/drivers/button.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/firmware/drivers/button.c b/firmware/drivers/button.c index 12a1ad0cf8..403b521db0 100644 --- a/firmware/drivers/button.c +++ b/firmware/drivers/button.c @@ -115,13 +115,13 @@ static bool button_try_post(int button, int data) /* one can swipe over the scren very quickly, * for this to work we want to forget about old presses and * only respect the very latest ones */ - const int force_post = true; + const bool force_post = true; #else /* Only post events if the queue is empty, * to avoid afterscroll effects. * i.e. don't post new buttons if previous ones haven't been - * processed yet */ - const int force_post = false; + * processed yet - but always post releases */ + const bool force_post = button & BUTTON_REL; #endif bool ret = queue_empty(&button_queue); |