settings: Fix controller preview not displaying the correct controller

This commit is contained in:
german77 2021-11-04 13:08:30 -06:00 committed by Narr the Reg
parent 8517d89be0
commit 0cf8201c5d
3 changed files with 7 additions and 4 deletions

View file

@ -880,7 +880,7 @@ void EmulatedController::Disconnect() {
}
bool EmulatedController::IsConnected(bool get_temporary_value) const {
if (get_temporary_value) {
if (get_temporary_value && is_configuring) {
return tmp_is_connected;
}
return is_connected;
@ -897,7 +897,7 @@ NpadIdType EmulatedController::GetNpadIdType() const {
}
NpadStyleIndex EmulatedController::GetNpadStyleIndex(bool get_temporary_value) const {
if (get_temporary_value) {
if (get_temporary_value && is_configuring) {
return tmp_npad_type;
}
return npad_type;