2018-01-31 11:35:09 +00:00
|
|
|
// Copyright 2018 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2018-01-31 11:35:09 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2018-07-07 05:51:34 +00:00
|
|
|
#include "DolphinQt/TAS/TASInputWindow.h"
|
2018-01-31 11:35:09 +00:00
|
|
|
|
2021-03-21 21:42:33 +00:00
|
|
|
#include "Core/HW/WiimoteEmu/ExtensionPort.h"
|
2019-01-01 14:32:39 +00:00
|
|
|
|
2018-01-31 11:35:09 +00:00
|
|
|
class QGroupBox;
|
2021-03-21 21:42:33 +00:00
|
|
|
class QHideEvent;
|
|
|
|
class QShowEvent;
|
2018-02-06 11:10:28 +00:00
|
|
|
class QSpinBox;
|
2019-03-31 02:49:57 +00:00
|
|
|
class TASCheckBox;
|
2018-01-31 11:35:09 +00:00
|
|
|
|
2021-03-21 21:42:33 +00:00
|
|
|
namespace WiimoteEmu
|
|
|
|
{
|
|
|
|
class Extension;
|
|
|
|
class Wiimote;
|
|
|
|
} // namespace WiimoteEmu
|
|
|
|
|
|
|
|
namespace ControllerEmu
|
|
|
|
{
|
|
|
|
class Attachments;
|
|
|
|
}
|
|
|
|
|
2018-07-07 05:51:34 +00:00
|
|
|
class WiiTASInputWindow : public TASInputWindow
|
2018-01-31 11:35:09 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
explicit WiiTASInputWindow(QWidget* parent, int num);
|
2021-03-21 21:42:33 +00:00
|
|
|
|
|
|
|
void hideEvent(QHideEvent* event) override;
|
|
|
|
void showEvent(QShowEvent* event) override;
|
2018-01-31 11:35:09 +00:00
|
|
|
|
|
|
|
private:
|
2021-03-21 21:42:33 +00:00
|
|
|
WiimoteEmu::Wiimote* GetWiimote();
|
|
|
|
ControllerEmu::Attachments* GetAttachments();
|
|
|
|
WiimoteEmu::Extension* GetExtension();
|
|
|
|
|
|
|
|
void UpdateExt();
|
|
|
|
|
|
|
|
WiimoteEmu::ExtensionNumber m_active_extension;
|
2018-01-31 11:35:09 +00:00
|
|
|
int m_num;
|
2021-03-21 21:42:33 +00:00
|
|
|
|
|
|
|
InputOverrider m_wiimote_overrider;
|
|
|
|
InputOverrider m_nunchuk_overrider;
|
|
|
|
InputOverrider m_classic_overrider;
|
|
|
|
|
2019-03-31 02:49:57 +00:00
|
|
|
TASCheckBox* m_a_button;
|
|
|
|
TASCheckBox* m_b_button;
|
|
|
|
TASCheckBox* m_1_button;
|
|
|
|
TASCheckBox* m_2_button;
|
|
|
|
TASCheckBox* m_plus_button;
|
|
|
|
TASCheckBox* m_minus_button;
|
|
|
|
TASCheckBox* m_home_button;
|
|
|
|
TASCheckBox* m_left_button;
|
|
|
|
TASCheckBox* m_up_button;
|
|
|
|
TASCheckBox* m_down_button;
|
|
|
|
TASCheckBox* m_right_button;
|
|
|
|
TASCheckBox* m_c_button;
|
|
|
|
TASCheckBox* m_z_button;
|
|
|
|
TASCheckBox* m_classic_a_button;
|
|
|
|
TASCheckBox* m_classic_b_button;
|
|
|
|
TASCheckBox* m_classic_x_button;
|
|
|
|
TASCheckBox* m_classic_y_button;
|
|
|
|
TASCheckBox* m_classic_plus_button;
|
|
|
|
TASCheckBox* m_classic_minus_button;
|
|
|
|
TASCheckBox* m_classic_l_button;
|
|
|
|
TASCheckBox* m_classic_r_button;
|
|
|
|
TASCheckBox* m_classic_zl_button;
|
|
|
|
TASCheckBox* m_classic_zr_button;
|
|
|
|
TASCheckBox* m_classic_home_button;
|
|
|
|
TASCheckBox* m_classic_left_button;
|
|
|
|
TASCheckBox* m_classic_up_button;
|
|
|
|
TASCheckBox* m_classic_down_button;
|
|
|
|
TASCheckBox* m_classic_right_button;
|
2018-01-31 11:35:09 +00:00
|
|
|
QSpinBox* m_remote_orientation_x_value;
|
|
|
|
QSpinBox* m_remote_orientation_y_value;
|
|
|
|
QSpinBox* m_remote_orientation_z_value;
|
|
|
|
QSpinBox* m_nunchuk_orientation_x_value;
|
|
|
|
QSpinBox* m_nunchuk_orientation_y_value;
|
|
|
|
QSpinBox* m_nunchuk_orientation_z_value;
|
|
|
|
QSpinBox* m_ir_x_value;
|
|
|
|
QSpinBox* m_ir_y_value;
|
|
|
|
QSpinBox* m_nunchuk_stick_x_value;
|
|
|
|
QSpinBox* m_nunchuk_stick_y_value;
|
|
|
|
QSpinBox* m_classic_left_stick_x_value;
|
|
|
|
QSpinBox* m_classic_left_stick_y_value;
|
|
|
|
QSpinBox* m_classic_right_stick_x_value;
|
|
|
|
QSpinBox* m_classic_right_stick_y_value;
|
|
|
|
QSpinBox* m_left_trigger_value;
|
|
|
|
QSpinBox* m_right_trigger_value;
|
|
|
|
QGroupBox* m_remote_orientation_box;
|
|
|
|
QGroupBox* m_nunchuk_orientation_box;
|
|
|
|
QGroupBox* m_ir_box;
|
|
|
|
QGroupBox* m_nunchuk_stick_box;
|
|
|
|
QGroupBox* m_classic_left_stick_box;
|
|
|
|
QGroupBox* m_classic_right_stick_box;
|
|
|
|
QGroupBox* m_remote_buttons_box;
|
|
|
|
QGroupBox* m_nunchuk_buttons_box;
|
|
|
|
QGroupBox* m_classic_buttons_box;
|
|
|
|
QGroupBox* m_triggers_box;
|
|
|
|
};
|