mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 13:57:57 -07:00
b296248b49
This lets the TAS input code use a higher-level interface for overriding inputs instead of having to fiddle with raw bits. WiiTASInputWindow in particular was messy with how much controller code it had to re-implement.
51 lines
1.1 KiB
C++
51 lines
1.1 KiB
C++
// Copyright 2018 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "DolphinQt/TAS/TASInputWindow.h"
|
|
|
|
class QGroupBox;
|
|
class QHideEvent;
|
|
class QShowEvent;
|
|
class QSpinBox;
|
|
class TASCheckBox;
|
|
|
|
class GCTASInputWindow : public TASInputWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit GCTASInputWindow(QWidget* parent, int controller_id);
|
|
|
|
void hideEvent(QHideEvent* event) override;
|
|
void showEvent(QShowEvent* event) override;
|
|
|
|
private:
|
|
int m_controller_id;
|
|
|
|
InputOverrider m_overrider;
|
|
|
|
TASCheckBox* m_a_button;
|
|
TASCheckBox* m_b_button;
|
|
TASCheckBox* m_x_button;
|
|
TASCheckBox* m_y_button;
|
|
TASCheckBox* m_z_button;
|
|
TASCheckBox* m_l_button;
|
|
TASCheckBox* m_r_button;
|
|
TASCheckBox* m_start_button;
|
|
TASCheckBox* m_left_button;
|
|
TASCheckBox* m_up_button;
|
|
TASCheckBox* m_down_button;
|
|
TASCheckBox* m_right_button;
|
|
QSpinBox* m_l_trigger_value;
|
|
QSpinBox* m_r_trigger_value;
|
|
QSpinBox* m_x_main_stick_value;
|
|
QSpinBox* m_y_main_stick_value;
|
|
QSpinBox* m_x_c_stick_value;
|
|
QSpinBox* m_y_c_stick_value;
|
|
QGroupBox* m_main_stick_box;
|
|
QGroupBox* m_c_stick_box;
|
|
QGroupBox* m_triggers_box;
|
|
QGroupBox* m_buttons_box;
|
|
};
|