mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-07-10 13:29:52 -04:00
Sansa As3525 OS stacks debug menu change scroll buttons
the other items that scroll use the menu button and reset on STD_OK OS stacks use STD_OK to scroll and any other button to reset Change-Id: I1fa1caa322fe761c6f92d2d08cc418e78843863b
This commit is contained in:
parent
d00a53a1f0
commit
d737cbb931
1 changed files with 17 additions and 0 deletions
|
|
@ -218,6 +218,22 @@ static int dbg_threads_action_callback(int action, struct gui_synclist *lists)
|
|||
}
|
||||
#if LCD_WIDTH <= 128
|
||||
int *x_offset = ((int*) lists->data);
|
||||
#if CONFIG_CPU == AS3525v2
|
||||
if (action == ACTION_STD_MENU)
|
||||
{
|
||||
*x_offset += 1;
|
||||
action = ACTION_REDRAW;
|
||||
}
|
||||
else if (IS_SYSEVENT(action))
|
||||
{
|
||||
return ACTION_REDRAW;
|
||||
}
|
||||
else if (action == ACTION_STD_OK)
|
||||
{
|
||||
*x_offset = 0;
|
||||
action = ACTION_REDRAW;
|
||||
}
|
||||
#else
|
||||
if (action == ACTION_STD_OK)
|
||||
{
|
||||
*x_offset += 1;
|
||||
|
|
@ -231,6 +247,7 @@ static int dbg_threads_action_callback(int action, struct gui_synclist *lists)
|
|||
{
|
||||
*x_offset = 0;
|
||||
}
|
||||
#endif
|
||||
#else
|
||||
(void) lists;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue