2021-01-23 19:05:04 +00:00
|
|
|
// Copyright 2021 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2021-01-23 19:05:04 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
#include <array>
|
|
|
|
|
|
|
|
class QCheckBox;
|
|
|
|
class QComboBox;
|
|
|
|
class QHBoxLayout;
|
|
|
|
class QGridLayout;
|
|
|
|
class QGroupBox;
|
|
|
|
class QLabel;
|
|
|
|
class QPushButton;
|
|
|
|
class QRadioButton;
|
|
|
|
|
2022-09-20 21:47:16 +00:00
|
|
|
namespace Core
|
|
|
|
{
|
|
|
|
enum class State;
|
|
|
|
}
|
|
|
|
|
2021-01-23 19:05:04 +00:00
|
|
|
class WiimoteControllersWidget final : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit WiimoteControllersWidget(QWidget* parent);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void SaveSettings();
|
|
|
|
void OnBluetoothPassthroughSyncPressed();
|
|
|
|
void OnBluetoothPassthroughResetPressed();
|
|
|
|
void OnWiimoteRefreshPressed();
|
2022-09-20 21:47:16 +00:00
|
|
|
void OnWiimoteConfigure(size_t index);
|
2021-01-23 19:05:04 +00:00
|
|
|
|
|
|
|
void CreateLayout();
|
|
|
|
void ConnectWidgets();
|
2022-09-20 21:47:16 +00:00
|
|
|
void LoadSettings(Core::State state);
|
2021-01-23 19:05:04 +00:00
|
|
|
|
|
|
|
QGroupBox* m_wiimote_box;
|
|
|
|
QGridLayout* m_wiimote_layout;
|
|
|
|
std::array<QLabel*, 4> m_wiimote_labels;
|
|
|
|
std::array<QComboBox*, 4> m_wiimote_boxes;
|
|
|
|
std::array<QPushButton*, 4> m_wiimote_buttons;
|
|
|
|
std::array<QHBoxLayout*, 4> m_wiimote_groups;
|
|
|
|
std::array<QLabel*, 2> m_wiimote_pt_labels;
|
|
|
|
|
|
|
|
QRadioButton* m_wiimote_emu;
|
|
|
|
QRadioButton* m_wiimote_passthrough;
|
|
|
|
QPushButton* m_wiimote_sync;
|
|
|
|
QPushButton* m_wiimote_reset;
|
|
|
|
QCheckBox* m_wiimote_continuous_scanning;
|
|
|
|
QCheckBox* m_wiimote_real_balance_board;
|
|
|
|
QCheckBox* m_wiimote_speaker_data;
|
|
|
|
QCheckBox* m_wiimote_ciface;
|
|
|
|
QPushButton* m_wiimote_refresh;
|
|
|
|
};
|