forked from len0rd/rockbox
Simulator: change the fix around so that it applies to all scrollwheel targets.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23439 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
223eba732e
commit
4b7de91884
1 changed files with 2 additions and 2 deletions
|
@ -1243,7 +1243,7 @@ void button_event(int key, bool pressed)
|
||||||
* implementation (look at button-e200.c for example if you are trying to
|
* implementation (look at button-e200.c for example if you are trying to
|
||||||
* figure out why using button_get_data needed a hack before).
|
* figure out why using button_get_data needed a hack before).
|
||||||
*/
|
*/
|
||||||
#if defined(HAVE_WHEEL_ACCELERATION)
|
#if defined(BUTTON_SCROLL_FWD) && defined(BUTTON_SCROLL_BACK)
|
||||||
if((new_btn == BUTTON_SCROLL_FWD || new_btn == BUTTON_SCROLL_BACK) &&
|
if((new_btn == BUTTON_SCROLL_FWD || new_btn == BUTTON_SCROLL_BACK) &&
|
||||||
pressed)
|
pressed)
|
||||||
{
|
{
|
||||||
|
@ -1252,8 +1252,8 @@ void button_event(int key, bool pressed)
|
||||||
* store the scroll forward/back buttons in their button data for
|
* store the scroll forward/back buttons in their button data for
|
||||||
* the button_read call.
|
* the button_read call.
|
||||||
*/
|
*/
|
||||||
btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK);
|
|
||||||
queue_post(&button_queue, new_btn, 1<<24);
|
queue_post(&button_queue, new_btn, 1<<24);
|
||||||
|
new_btn &= ~(BUTTON_SCROLL_FWD | BUTTON_SCROLL_BACK);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue