Small thumbstick tweak

This commit is contained in:
Linus Probert 2018-10-12 23:43:25 +02:00
parent 850aae34ee
commit da3ff1a222
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ input_handle_event(Input *input, SDL_Event *event)
input->keyState &= ~get_event_button(event);
}
else if (event->type == SDL_CONTROLLERAXISMOTION) {
if (event->caxis.value > 32000 || event->caxis.value < -32000)
if (event->caxis.value > 31500 || event->caxis.value < -31500)
input->keyState |= get_axis_motion(event);
else
input->keyState &= ~get_axis_motion(event);