mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 12:45:26 -05:00
Button queue handling is split from main button driver
First half of https://gerrit.rockbox.org/r/c/rockbox/+/570 Change-Id: Icc64dfd8194c18f69564ed5f8bf7dd70a4330eb9
This commit is contained in:
parent
5954a2fd48
commit
da9d67a0fe
30 changed files with 266 additions and 221 deletions
|
|
@ -246,7 +246,7 @@ void clickwheel_int(void)
|
|||
|
||||
count = 0;
|
||||
|
||||
if (queue_empty(&button_queue))
|
||||
if (button_queue_empty())
|
||||
{
|
||||
/* Post wheel keycode with wheel data */
|
||||
int key = keycode;
|
||||
|
|
@ -260,7 +260,7 @@ void clickwheel_int(void)
|
|||
|
||||
prev_keypost = keycode;
|
||||
|
||||
queue_post(&button_queue, key, (fast_mode << 31) | delta | velocity);
|
||||
button_queue_post(key, (fast_mode << 31) | delta | velocity);
|
||||
/* Message posted - reset delta */
|
||||
delta = 1ul << 24;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue