mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 10:51:55 +01:00
-fix for r162 d-pad view switching. Works fine for me but if anyone still has problems just go back to the r121 way.
This commit is contained in:
parent
8a475cc7d3
commit
ef879da2d1
@ -178,6 +178,7 @@ int CMenu::main(void)
|
||||
bool dpad_mode = m_cfg.getBool("GENERAL", "dpad_mode", false);
|
||||
parental_homebrew = m_cfg.getBool("HOMEBREW", "parental", false);
|
||||
|
||||
u32 cv=m_current_view;
|
||||
m_reload = false;
|
||||
static u32 disc_check = 0;
|
||||
int done = 0;
|
||||
@ -258,6 +259,7 @@ int CMenu::main(void)
|
||||
break;
|
||||
}
|
||||
m_btnMgr.noClick(true);
|
||||
cv = m_current_view;
|
||||
if ((m_btnMgr.selected(m_mainBtnChannel) || m_btnMgr.selected(m_mainBtnUsb) || m_btnMgr.selected(m_mainBtnDML) || m_btnMgr.selected(m_mainBtnHomebrew)) && dpad_mode && (BTN_UP_PRESSED || BTN_DOWN_PRESSED || BTN_LEFT_PRESSED || BTN_RIGHT_PRESSED))
|
||||
{
|
||||
if (BTN_UP_PRESSED)
|
||||
@ -268,10 +270,13 @@ int CMenu::main(void)
|
||||
m_current_view = COVERFLOW_HOMEBREW;
|
||||
else if (BTN_RIGHT_PRESSED && show_channel)
|
||||
m_current_view = COVERFLOW_CHANNEL;
|
||||
if (cv != m_current_view)
|
||||
{
|
||||
m_category = m_cat.getInt(_domainFromView(), "category", 0);
|
||||
LoadView();
|
||||
}
|
||||
if (!m_btnMgr.selected(m_mainBtnChannel) && !m_btnMgr.selected(m_mainBtnUsb) && !m_btnMgr.selected(m_mainBtnDML) && !m_btnMgr.selected(m_mainBtnHomebrew))
|
||||
}
|
||||
if (cv == m_current_view && !m_btnMgr.selected(m_mainBtnChannel) && !m_btnMgr.selected(m_mainBtnUsb) && !m_btnMgr.selected(m_mainBtnDML) && !m_btnMgr.selected(m_mainBtnHomebrew))
|
||||
{
|
||||
if (!m_btnMgr.selected(m_mainBtnQuit) && !BTN_B_HELD && (BTN_UP_REPEAT || RIGHT_STICK_UP))
|
||||
m_cf.up();
|
||||
|
Loading…
Reference in New Issue
Block a user