Commit FS#10887 by me. Change the check for software poweroff to be that the power button is held, not that the power button is held AND that no other button is held. This makes shutting down players with small tightly spaced buttons (Sandisk...) much easier. This also means that combos involving the power button can now potientially power off the player. The H10 and sansas excluding the Fuze use a combo involving power for AB repeat mode. However, the timeout for shutdown is much longer then the long press duration needed for AB repeat, and in practice seems to not be a problem on these players. I've tested this on various players for a long time and bugged other people to try it out, so I think its pretty safe, but if theres problems it can be reverted or keymaps tweaked.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26397 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
be0aa25aba
commit
1ecb6297a1
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ static void button_tick(void)
|
||||||
which doesn't shut down easily with the OFF
|
which doesn't shut down easily with the OFF
|
||||||
key */
|
key */
|
||||||
#ifdef HAVE_SW_POWEROFF
|
#ifdef HAVE_SW_POWEROFF
|
||||||
if ((btn == POWEROFF_BUTTON
|
if ((btn & POWEROFF_BUTTON
|
||||||
#ifdef RC_POWEROFF_BUTTON
|
#ifdef RC_POWEROFF_BUTTON
|
||||||
|| btn == RC_POWEROFF_BUTTON
|
|| btn == RC_POWEROFF_BUTTON
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue