It turns out event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED is actually telling you that the provided x and y have already been flipped. You can undo this by multiplying by -1 but you don't need to do that if you want to respect the operating system option.
This PR removes the multiplying and now the system setting is preserved
It turns out
event.wheel.direction == SDL_MOUSEWHEEL_FLIPPED
is actually telling you that the providedx
andy
have already been flipped. You can undo this by multiplying by-1
but you don't need to do that if you want to respect the operating system option.This PR removes the multiplying and now the system setting is preserved