summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/EmulatedUSB/LogitechMicWindow.h
blob: 746aeed3aba74ef143a30ff46725998c26385815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright 2025 Dolphin Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <QVBoxLayout>
#include <QWidget>

#include "Core/Config/MainSettings.h"
#include "Core/Core.h"

class ConfigBool;
class QComboBox;

class LogitechMicWindow final : public QWidget
{
  Q_OBJECT
public:
  explicit LogitechMicWindow(QWidget* parent = nullptr);

private:
  void CreateMainWindow();
  void CreateCheckboxGroup(QVBoxLayout* main_layout);
  void CreateMicrophoneConfigurationGroup(QVBoxLayout* main_layout);

  void OnEmulationStateChanged(Core::State state);
  void OnInputDeviceChange(std::size_t index);

  std::array<ConfigBool*, Config::EMULATED_LOGITECH_MIC_COUNT> m_mic_enabled_checkboxes;
  std::array<QComboBox*, 4> m_mic_device_comboboxes;
};