mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-24 10:23:21 +00:00
34 lines
857 B
C++
34 lines
857 B
C++
// Copyright 2025 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <QVBoxLayout>
|
|
#include <QWidget>
|
|
|
|
#include "Core/Core.h"
|
|
|
|
class QCheckBox;
|
|
class QComboBox;
|
|
|
|
class LogitechMicWindow : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit LogitechMicWindow(QWidget* parent = nullptr);
|
|
~LogitechMicWindow() override;
|
|
|
|
private:
|
|
void CreateMainWindow();
|
|
void CreateCheckboxGroup(QVBoxLayout* main_layout);
|
|
void CreateMicrophoneConfigurationGroup(QVBoxLayout* main_layout);
|
|
void OnEmulationStateChanged(Core::State state);
|
|
void EmulateLogitechMic(u8 index, bool emulate);
|
|
void OnInputDeviceChange(u8 index);
|
|
void OnMuteChange(u8 index, bool muted);
|
|
|
|
std::array<QCheckBox*, 4> m_checkbox_mic_enabled;
|
|
std::array<QCheckBox*, 4> m_checkbox_mic_muted;
|
|
std::array<QComboBox*, 4> m_combobox_microphone;
|
|
};
|