2#include <NDEVR/Joystick.h>
6 class JoystickSettingsUI;
48 Ui::JoystickSettingsUI*
ui;
QTimer * m_request_show_deadzone_timer
Timer to temporarily show the deadzone overlay on the joystick.
Joystick * m_joystick
The joystick being configured.
JoystickSettingsDialog(Joystick *joystick, QWidget *parent=nullptr)
Constructs the joystick settings dialog for a given joystick.
void updateCancelButton()
Updates the enabled state of the cancel button based on setting changes.
void finish()
Applies the settings and performs cleanup.
QTimer * m_request_show_sensitivity_timer
Timer to temporarily show the sensitivity overlay on the joystick.
void updateUIFromSettings()
Updates the UI controls to reflect the current joystick settings.
virtual void setVisible(bool visible) override
Overrides visibility to synchronize the UI when shown.
~JoystickSettingsDialog()
Destructor.
JoystickSettings m_original_settings
The settings as they were when the dialog was opened.
bool event(QEvent *event) override
Processes generic events for the dialog.
void acceptedSignal()
Emitted when the user accepts the new settings.
Ui::JoystickSettingsUI * ui
The auto-generated UI form.
void init()
Initializes the dialog UI and connects signals.
JoystickSettings m_new_settings
The settings currently being edited.
Settings that define how a Joystick will behave.
A joystick that allows the user to move around, reporting the vector of the stick,...
The primary namespace for the NDEVR SDK.