mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-29 18:11:38 +00:00
Mouse coordinates are floating point
You can get sub-pixel mouse coordinates and motion depending on the platform and display scaling. Fixes https://github.com/libsdl-org/SDL/issues/2999
This commit is contained in:
@@ -921,7 +921,7 @@ static void IOS_MFIJoystickUpdate(SDL_Joystick *joystick)
|
||||
for (id key in controller.physicalInputProfile.axes) {
|
||||
GCControllerAxisInput *axis = controller.physicalInputProfile.axes[key];
|
||||
if (axis.value != 0.0f)
|
||||
NSLog(@"Axis %@ = %.2f\n", key, axis.value);
|
||||
NSLog(@"Axis %@ = %g\n", key, axis.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user