settings: Disable controller preview if controller is not active

This commit is contained in:
german77 2021-05-30 10:57:20 -05:00
parent e41c8b6780
commit ac48e059bc
3 changed files with 25 additions and 2 deletions
src/yuzu/configuration

View file

@ -100,6 +100,7 @@ private:
static LedPattern GetColorPattern(std::size_t index, bool player_on);
void UpdateColors();
void ResetInputs();
// Draw controller functions
void DrawHandheldController(QPainter& p, QPointF center);
@ -176,6 +177,7 @@ private:
using StickArray =
std::array<std::unique_ptr<Input::AnalogDevice>, Settings::NativeAnalog::NUM_STICKS_HID>;
bool is_enabled{};
bool mapping_active{};
int blink_counter{};
QColor button_color{};