dinput: Ramp from lStart to lEnd, not lStart to lStart.
This commit is contained in:
parent
51f06239ff
commit
296b67f556
|
@ -673,7 +673,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_SetParameters(
|
||||||
return DIERR_INVALIDPARAM;
|
return DIERR_INVALIDPARAM;
|
||||||
tsp = peff->lpvTypeSpecificParams;
|
tsp = peff->lpvTypeSpecificParams;
|
||||||
This->effect.u.ramp.start_level = (tsp->lStart / 10) * 32;
|
This->effect.u.ramp.start_level = (tsp->lStart / 10) * 32;
|
||||||
This->effect.u.ramp.end_level = (tsp->lStart / 10) * 32;
|
This->effect.u.ramp.end_level = (tsp->lEnd / 10) * 32;
|
||||||
} else if (type == DIEFT_CONDITION) {
|
} else if (type == DIEFT_CONDITION) {
|
||||||
LPCDICONDITION tsp = peff->lpvTypeSpecificParams;
|
LPCDICONDITION tsp = peff->lpvTypeSpecificParams;
|
||||||
if (peff->cbTypeSpecificParams == sizeof(DICONDITION)) {
|
if (peff->cbTypeSpecificParams == sizeof(DICONDITION)) {
|
||||||
|
|
Loading…
Reference in New Issue