aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_input_dialog.h
blob: d1bd865f9eb9f209c2b953cdf23b1b17642816eb (plain) (blame)
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
32
33
34
35
36
37
38
// Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.

#pragma once

#include <memory>
#include <QDialog>
#include "yuzu/configuration/configure_input.h"

class QPushButton;

namespace InputCommon {
class InputSubsystem;
}

namespace Ui {
class ConfigureInputDialog;
}

class ConfigureInputDialog : public QDialog {
    Q_OBJECT

public:
    explicit ConfigureInputDialog(QWidget* parent, std::size_t max_players,
                                  InputCommon::InputSubsystem* input_subsystem);
    ~ConfigureInputDialog() override;

    void ApplyConfiguration();

private:
    void changeEvent(QEvent* event) override;
    void RetranslateUI();

    std::unique_ptr<Ui::ConfigureInputDialog> ui;

    ConfigureInput* input_widget;
};