mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20029 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e7718a711f
commit
5593de5e79
1 changed files with 9 additions and 7 deletions
|
|
@ -168,15 +168,17 @@ static int button_dbop(void)
|
|||
hold_button = _dbop_din & (1<<12);
|
||||
if (hold_button)
|
||||
return BUTTON_NONE;
|
||||
#endif
|
||||
/* read power */
|
||||
if (_dbop_din & (1<<8))
|
||||
ret |= BUTTON_POWER;
|
||||
if(!(_dbop_din & (1<<15)))
|
||||
ret |= BUTTON_HOME;
|
||||
#if defined(HAVE_SCROLLWHEEL)
|
||||
/* read wheel on bit 13 & 14, but sent to the button queue seperately */
|
||||
clickwheel();
|
||||
#endif
|
||||
#endif
|
||||
/* read power on bit 8 */
|
||||
if (_dbop_din & (1<<8))
|
||||
ret |= BUTTON_POWER;
|
||||
/* read home on bit 15 */
|
||||
if(!(_dbop_din & (1<<15)))
|
||||
ret |= BUTTON_HOME;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue