blob: 07411a86f8edb87c4020ec2009d165e127c95477 (
plain)
| 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
39
40
41
42
43
 | // Copyright 2020 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#pragma once
#include <array>
#include <memory>
#include <QDialog>
class QGroupBox;
class QSpinBox;
namespace Ui {
class ConfigureVibration;
}
class ConfigureVibration : public QDialog {
    Q_OBJECT
public:
    explicit ConfigureVibration(QWidget* parent);
    ~ConfigureVibration() override;
    void ApplyConfiguration();
    static void SetVibrationDevices(std::size_t player_index);
    static void SetAllVibrationDevices();
private:
    void changeEvent(QEvent* event) override;
    void RetranslateUI();
    std::unique_ptr<Ui::ConfigureVibration> ui;
    static constexpr std::size_t NUM_PLAYERS = 8;
    // Groupboxes encapsulating the vibration strength spinbox.
    std::array<QGroupBox*, NUM_PLAYERS> vibration_groupboxes;
    // Spinboxes representing the vibration strength percentage.
    std::array<QSpinBox*, NUM_PLAYERS> vibration_spinboxes;
};
 |