-added new b_lr_mode option in wiiflow.ini under [GENERAL] for B+L/R.

yes = B+L/R change pages & +/- change songs
no(default) = B+L/R change songs & +/- change pages
This commit is contained in:
fledge68 2012-03-19 13:14:49 +00:00
parent 524aee0893
commit 8d11ae4c1d

View File

@ -176,6 +176,7 @@ int CMenu::main(void)
show_homebrew = !m_cfg.getBool("HOMEBREW", "disable", false); show_homebrew = !m_cfg.getBool("HOMEBREW", "disable", false);
show_channel = !m_cfg.getBool("GENERAL", "hidechannel", false); show_channel = !m_cfg.getBool("GENERAL", "hidechannel", false);
bool dpad_mode = m_cfg.getBool("GENERAL", "dpad_mode", false); bool dpad_mode = m_cfg.getBool("GENERAL", "dpad_mode", false);
bool b_lr_mode = m_cfg.getBool("GENERAL", "b_lr_mode", false);
parental_homebrew = m_cfg.getBool("HOMEBREW", "parental", false); parental_homebrew = m_cfg.getBool("HOMEBREW", "parental", false);
u32 cv=m_current_view; u32 cv=m_current_view;
@ -303,11 +304,11 @@ int CMenu::main(void)
} }
m_btnMgr.noClick(false); m_btnMgr.noClick(false);
} }
//Change Songs //Change Songs or search by pages
else if (!BTN_B_HELD && BTN_MINUS_PRESSED) else if (!BTN_B_HELD && BTN_MINUS_PRESSED && b_lr_mode) MusicPlayer::Instance()->Previous();
MusicPlayer::Instance()->Previous(); else if (!BTN_B_HELD && BTN_MINUS_PRESSED && !b_lr_mode) m_cf.pageUp();
else if (!BTN_B_HELD && BTN_PLUS_PRESSED) else if (!BTN_B_HELD && BTN_PLUS_PRESSED && b_lr_mode) MusicPlayer::Instance()->Next();
MusicPlayer::Instance()->Next(); else if (!BTN_B_HELD && BTN_PLUS_PRESSED && !b_lr_mode) m_cf.pageDown();
else if (BTN_B_HELD) else if (BTN_B_HELD)
{ {
const char *domain = _domainFromView(); const char *domain = _domainFromView();
@ -341,11 +342,11 @@ int CMenu::main(void)
m_btnMgr.show(m_mainLblNotice); m_btnMgr.show(m_mainLblNotice);
} }
} }
//Search by pages //Search by pages or change songs
else if (BTN_LEFT_PRESSED) else if (BTN_LEFT_PRESSED && b_lr_mode) m_cf.pageUp();
m_cf.pageUp(); else if (BTN_LEFT_PRESSED && !b_lr_mode) MusicPlayer::Instance()->Previous();
else if (BTN_RIGHT_PRESSED) else if (BTN_RIGHT_PRESSED && b_lr_mode) m_cf.pageDown();
m_cf.pageDown(); else if (BTN_RIGHT_PRESSED && !b_lr_mode) MusicPlayer::Instance()->Next();
//Sorting Selection //Sorting Selection
else if (BTN_PLUS_PRESSED && !m_locked) else if (BTN_PLUS_PRESSED && !m_locked)
{ {