Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added the ability to reverse the direction of the force feedback by a…
…llowing negative range values.

Fixes issue 5981.
  • Loading branch information
skidau committed Feb 17, 2013
1 parent d994e56 commit 1792a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/DolphinWX/Src/InputConfigDiag.cpp
Expand Up @@ -519,7 +519,7 @@ wxStaticBoxSizer* ControlDialog::CreateControlChooser(GamepadPage* const parent)
button_sizer->Add(add_button, 1, 0, 5);
}

range_slider = new wxSlider(this, -1, SLIDER_TICK_COUNT, 0, SLIDER_TICK_COUNT * 5, wxDefaultPosition, wxDefaultSize, wxSL_TOP | wxSL_LABELS /*| wxSL_AUTOTICKS*/);
range_slider = new wxSlider(this, -1, SLIDER_TICK_COUNT, -SLIDER_TICK_COUNT * 5, SLIDER_TICK_COUNT * 5, wxDefaultPosition, wxDefaultSize, wxSL_TOP | wxSL_LABELS /*| wxSL_AUTOTICKS*/);

range_slider->SetValue((int)(control_reference->range * SLIDER_TICK_COUNT));

Expand Down

0 comments on commit 1792a9d

Please sign in to comment.