Hi,
I’ve been experimenting with the Mfi controller support on iOS, however I have run into an issue. Looking at other SDL Joystick code for PSP or Windows, it appears the SDL_PrivateJoystickAxis
API is only called when the axis value changes. For Mfi controllers, it calls this every time, causing SDL_JOYAXISMOTION
events to flood the system.
Has anyone else seen this issue?
Update:
Seems like the simple fix is to check if the value has changed in the SDL_PrivateJoystickAxis
API, similarly to the SDL_PrivateJoystickButton
and SDL_PrivateJoystickHat
APIs
Cheers,
Stuart