diff --git a/GameControllerDirectInput.cpp b/GameControllerDirectInput.cpp index 78456df..0200f58 100644 --- a/GameControllerDirectInput.cpp +++ b/GameControllerDirectInput.cpp @@ -547,7 +547,7 @@ bool GameControllerDirectInput::toDIEFFECT(ForceEffect *force, DirectInputForceE dife.envelope.dwAttackLevel = force->attackLevel() * DI_FFNOMINALMAX; dife.envelope.dwAttackTime = force->attackLength() * 1000 * 1000; dife.envelope.dwFadeLevel = force->fadeLevel() * DI_FFNOMINALMAX; - dife.envelope.dwAttackTime = force->fadeLength() * 1000 * 1000; + dife.envelope.dwFadeTime = force->fadeLength() * 1000 * 1000; break; case FF_DAMPER: diff --git a/Widgets/EnvelopeWidget.cpp b/Widgets/EnvelopeWidget.cpp index 90c8646..064de56 100644 --- a/Widgets/EnvelopeWidget.cpp +++ b/Widgets/EnvelopeWidget.cpp @@ -45,7 +45,7 @@ EnvelopeWidget::EnvelopeWidget(QWidget *parent) : ui->attackLevelSpinBox->setSingleStep(0.05); ui->attackLengthSpinBox->setRange(0.0, 32.767); ui->attackLengthSpinBox->setSingleStep(0.1); - ui->effectLevelSpinBox->setRange(0.0, 1.0); + ui->effectLevelSpinBox->setRange(-1.0, 1.0); ui->effectLevelSpinBox->setSingleStep(0.05); ui->fadeLevelSpinBox->setRange(0.0, 1.0); ui->fadeLevelSpinBox->setSingleStep(0.05);