aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/configuration/configure_mouse_panning.h
blob: 08c6e1f621cb0e1175bd426b268cc56e951c398d (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
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include <memory>
#include <QDialog>

namespace InputCommon {
class InputSubsystem;
}

namespace Ui {
class ConfigureMousePanning;
}

class ConfigureMousePanning : public QDialog {
    Q_OBJECT
public:
    explicit ConfigureMousePanning(QWidget* parent, InputCommon::InputSubsystem* input_subsystem_,
                                   float right_stick_deadzone, float right_stick_range);
    ~ConfigureMousePanning() override;

public slots:
    void ApplyConfiguration();

private:
    void closeEvent(QCloseEvent* event) override;
    void SetConfiguration(float right_stick_deadzone, float right_stick_range);
    void SetDefaultConfiguration();
    void ConnectEvents();

    InputCommon::InputSubsystem* input_subsystem;
    std::unique_ptr<Ui::ConfigureMousePanning> ui;
};