mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-06 08:40:21 +01:00
- Don't reset ldd pads when saving a pad config - Prevent configuration of registered ldd pads in the gui while ingame
43 lines
1 KiB
C++
43 lines
1 KiB
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
|
|
#include "ui_pad_led_settings_dialog.h"
|
|
|
|
namespace Ui
|
|
{
|
|
class pad_led_settings_dialog;
|
|
}
|
|
|
|
class pad_led_settings_dialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit pad_led_settings_dialog(const int& colorR, const int& colorG, const int& colorB, const bool& led_low_battery_blink, const bool& led_battery_indicator, const int& led_battery_indicator_brightness, QDialog* parent = Q_NULLPTR);
|
|
~pad_led_settings_dialog();
|
|
|
|
Q_SIGNALS:
|
|
void pass_led_settings(int m_cR, int m_cG, int m_cB, bool m_low_battery_blink, bool m_battery_indicator, int m_battery_indicator_brightness);
|
|
|
|
private Q_SLOTS:
|
|
void update_slider_label(int val);
|
|
void switch_groupboxes(bool tick);
|
|
|
|
private:
|
|
void redraw_color_sample();
|
|
void read_form_values();
|
|
Ui::pad_led_settings_dialog *ui;
|
|
struct led_settings
|
|
{
|
|
int cR = 255;
|
|
int cG = 255;
|
|
int cB = 255;
|
|
bool low_battery_blink = true;
|
|
bool battery_indicator = false;
|
|
int battery_indicator_brightness = 50;
|
|
};
|
|
led_settings m_initial;
|
|
led_settings m_new;
|
|
};
|