mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Made the navigation feel more responsive when using the video view style.
This commit is contained in:
parent
401d433be0
commit
08c0bc1a43
|
@ -199,11 +199,6 @@ void ViewController::goToSystemView(SystemData* system, bool playTransition)
|
||||||
|
|
||||||
mPreviousView = mCurrentView;
|
mPreviousView = mCurrentView;
|
||||||
|
|
||||||
// Pause the video. The onHide() call will take place later in the transition animation lambda
|
|
||||||
// function. For views without videos this has no effect (and no adverse effect either).
|
|
||||||
if (mCurrentView)
|
|
||||||
mCurrentView->onPauseVideo();
|
|
||||||
|
|
||||||
if (system->isGroupedCustomCollection())
|
if (system->isGroupedCustomCollection())
|
||||||
system = system->getRootFolder()->getParent()->getSystem();
|
system = system->getRootFolder()->getParent()->getSystem();
|
||||||
|
|
||||||
|
@ -322,11 +317,6 @@ void ViewController::goToGameList(SystemData* system)
|
||||||
if (slideTransitions)
|
if (slideTransitions)
|
||||||
cancelViewTransitions();
|
cancelViewTransitions();
|
||||||
|
|
||||||
// Pause the video. The onHide() call will take place later in the transition animation lambda
|
|
||||||
// function. For views without videos this has no effect (and no adverse effect either).
|
|
||||||
else if (mCurrentView)
|
|
||||||
mCurrentView->onPauseVideo();
|
|
||||||
|
|
||||||
if (mState.viewing == SYSTEM_SELECT) {
|
if (mState.viewing == SYSTEM_SELECT) {
|
||||||
// Move the system list.
|
// Move the system list.
|
||||||
auto sysList = getSystemListView();
|
auto sysList = getSystemListView();
|
||||||
|
|
|
@ -104,6 +104,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
if (config->isMappedTo("a", input)) {
|
if (config->isMappedTo("a", input)) {
|
||||||
FileData* cursor = getCursor();
|
FileData* cursor = getCursor();
|
||||||
if (cursor->getType() == GAME) {
|
if (cursor->getType() == GAME) {
|
||||||
|
onPauseVideo();
|
||||||
ViewController::get()->cancelViewTransitions();
|
ViewController::get()->cancelViewTransitions();
|
||||||
stopListScrolling();
|
stopListScrolling();
|
||||||
launch(cursor);
|
launch(cursor);
|
||||||
|
@ -135,6 +136,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
NavigationSounds::getInstance()->playThemeNavigationSound(BACKSOUND);
|
NavigationSounds::getInstance()->playThemeNavigationSound(BACKSOUND);
|
||||||
|
onPauseVideo();
|
||||||
onFocusLost();
|
onFocusLost();
|
||||||
stopListScrolling();
|
stopListScrolling();
|
||||||
SystemData* systemToView = getCursor()->getSystem();
|
SystemData* systemToView = getCursor()->getSystem();
|
||||||
|
@ -150,6 +152,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
else if (config->isMappedLike(getQuickSystemSelectRightButton(), input)) {
|
else if (config->isMappedLike(getQuickSystemSelectRightButton(), input)) {
|
||||||
if (Settings::getInstance()->getBool("QuickSystemSelect")) {
|
if (Settings::getInstance()->getBool("QuickSystemSelect")) {
|
||||||
|
onPauseVideo();
|
||||||
onFocusLost();
|
onFocusLost();
|
||||||
stopListScrolling();
|
stopListScrolling();
|
||||||
ViewController::get()->goToNextGameList();
|
ViewController::get()->goToNextGameList();
|
||||||
|
@ -158,6 +161,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
else if (config->isMappedLike(getQuickSystemSelectLeftButton(), input)) {
|
else if (config->isMappedLike(getQuickSystemSelectLeftButton(), input)) {
|
||||||
if (Settings::getInstance()->getBool("QuickSystemSelect")) {
|
if (Settings::getInstance()->getBool("QuickSystemSelect")) {
|
||||||
|
onPauseVideo();
|
||||||
onFocusLost();
|
onFocusLost();
|
||||||
stopListScrolling();
|
stopListScrolling();
|
||||||
ViewController::get()->goToPrevGameList();
|
ViewController::get()->goToPrevGameList();
|
||||||
|
|
Loading…
Reference in a new issue