mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-13 17:48:43 +01:00
RMG-Input: implement 'Test Rumble' button in the options dialog
This commit is contained in:
1 parent
042717c3a4
commit
9155faf1d2
6 files changed
+72
-8
No files matched your search
@@ -853,7 +853,11 @@ void ControllerWidget::on_resetButton_clicked()
|
||||
|
||||
void ControllerWidget::on_optionsButton_clicked()
|
||||
{
|
||||
OptionsDialog dialog(this, this->optionsDialogSettings);
|
||||
bool isKeyboard = this->inputDeviceComboBox->currentData().toInt() == (int)InputDeviceType::Keyboard;
|
||||
|
||||
OptionsDialog dialog(this, this->optionsDialogSettings,
|
||||
isKeyboard ? nullptr : this->currentJoystick,
|
||||
isKeyboard ? nullptr : this->currentController);
|
||||
int ret = dialog.exec();
|
||||
|
||||
// when saved, store settings for later
|
||||
@@ -1866,6 +1870,12 @@ void ControllerWidget::SetIsCurrentJoystickGameController(bool isGameController)
|
||||
this->isCurrentJoystickGameController = isGameController;
|
||||
}
|
||||
|
||||
void ControllerWidget::SetCurrentJoystick(SDL_Joystick* joystick, SDL_GameController* controller)
|
||||
{
|
||||
this->currentJoystick = joystick;
|
||||
this->currentController = controller;
|
||||
}
|
||||
|
||||
void ControllerWidget::AddUserProfile(QString name, QString section)
|
||||
{
|
||||
int index = this->profileComboBox->findData(section);
|
||||
|
||||
Reference in new issue
Block a user