mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 23:15:38 +00:00
Fixed an issue with adjusting SliderComponent values using the controller D-pad.
This commit is contained in:
parent
d75d2f41d1
commit
0dfe52586c
|
@ -40,6 +40,7 @@ SliderComponent::SliderComponent(
|
|||
|
||||
bool SliderComponent::input(InputConfig* config, Input input)
|
||||
{
|
||||
if (input.value != 0) {
|
||||
if (config->isMappedLike("left", input)) {
|
||||
if (input.value)
|
||||
setValue(mValue - mSingleIncrement);
|
||||
|
@ -56,6 +57,10 @@ bool SliderComponent::input(InputConfig* config, Input input)
|
|||
mMoveAccumulator = -MOVE_REPEAT_DELAY;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
else {
|
||||
mMoveRate = 0;
|
||||
}
|
||||
|
||||
return GuiComponent::input(config, input);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue