Merge pull request #61 from penfold42/buttonsfix

Browser: bugfix out by 1 in rom and device change buttons
This commit is contained in:
Stephen White 2018-08-05 17:13:12 +10:00 committed by GitHub
commit 4ee11949fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -897,22 +897,22 @@ void FileBrowser::UpdateInputFolders()
{
if (inputMappings->BrowseSelect())
{
SelectROMOrDevice(7); // == device 8
SelectROMOrDevice(8); // == device 8
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseUp())
{
SelectROMOrDevice(8); // == device 9
SelectROMOrDevice(9); // == device 9
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseDown())
{
SelectROMOrDevice(9); // == device 10
SelectROMOrDevice(10); // == device 10
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseBack())
{
SelectROMOrDevice(10); // == device 11
SelectROMOrDevice(11); // == device 11
buttonChangedROMDevice = true;
}
}
@ -920,22 +920,22 @@ void FileBrowser::UpdateInputFolders()
{
if (inputMappings->BrowseUp())
{
SelectROMOrDevice(0);
SelectROMOrDevice(1);
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseDown())
{
SelectROMOrDevice(1);
SelectROMOrDevice(2);
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseBack())
{
SelectROMOrDevice(2);
SelectROMOrDevice(3);
buttonChangedROMDevice = true;
}
else if (inputMappings->BrowseInsert())
{
SelectROMOrDevice(3);
SelectROMOrDevice(4);
buttonChangedROMDevice = true;
}
}