mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 08:37:12 +00:00
Typo fix to avoid divide by zero.
This commit is contained in:
parent
ce8d327e8e
commit
5539c75ef0
@ -385,7 +385,7 @@ namespace ICS
|
|||||||
{
|
{
|
||||||
ctrl->setIgnoreAutoReverse(true);
|
ctrl->setIgnoreAutoReverse(true);
|
||||||
|
|
||||||
float axisRange = SDL_JOY_AXIS_MAX - SDL_JOY_AXIS_MAX;
|
float axisRange = SDL_JOY_AXIS_MAX - SDL_JOY_AXIS_MIN;
|
||||||
float valDisplaced = (float)(evt.value - SDL_JOY_AXIS_MIN);
|
float valDisplaced = (float)(evt.value - SDL_JOY_AXIS_MIN);
|
||||||
|
|
||||||
if(joystickBinderItem.direction == Control::INCREASE)
|
if(joystickBinderItem.direction == Control::INCREASE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user