mirror of
https://github.com/PabloMK7/citra.git
synced 2025-12-15 19:58:47 +00:00
Backport review comments from yuzu-emu/yuzu#4382: "yuzu: Add motion and touch configuration from Citra" (#5543)
This commit is contained in:
parent
a93d7a8d3a
commit
14924e9db3
9 changed files with 127 additions and 108 deletions
|
|
@ -26,11 +26,11 @@ class CalibrationConfigurationDialog : public QDialog {
|
|||
public:
|
||||
explicit CalibrationConfigurationDialog(QWidget* parent, const std::string& host, u16 port,
|
||||
u8 pad_index, u16 client_id);
|
||||
~CalibrationConfigurationDialog();
|
||||
~CalibrationConfigurationDialog() override;
|
||||
|
||||
private:
|
||||
Q_INVOKABLE void UpdateLabelText(QString text);
|
||||
Q_INVOKABLE void UpdateButtonText(QString text);
|
||||
Q_INVOKABLE void UpdateLabelText(const QString& text);
|
||||
Q_INVOKABLE void UpdateButtonText(const QString& text);
|
||||
|
||||
QVBoxLayout* layout;
|
||||
QLabel* status_label;
|
||||
|
|
@ -39,7 +39,10 @@ private:
|
|||
|
||||
// Configuration results
|
||||
bool completed{};
|
||||
u16 min_x, min_y, max_x, max_y;
|
||||
u16 min_x{};
|
||||
u16 min_y{};
|
||||
u16 max_x{};
|
||||
u16 max_y{};
|
||||
|
||||
friend class ConfigureMotionTouch;
|
||||
};
|
||||
|
|
@ -81,7 +84,10 @@ private:
|
|||
std::optional<std::function<void(const Common::ParamPackage&)>> input_setter;
|
||||
|
||||
// Coordinate system of the CemuhookUDP touch provider
|
||||
int min_x, min_y, max_x, max_y;
|
||||
int min_x{};
|
||||
int min_y{};
|
||||
int max_x{};
|
||||
int max_y{};
|
||||
|
||||
bool udp_test_in_progress{};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue