Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
in_sdl.c: replace uses of deprecated IOHID{Get|Set}AccelerationWithKey
Thanks to a tip found at: https://stackoverflow.com/questions/49679753 Fixes deprecation warnings from Apple compiler: in_sdl.c:167:7: 'IOHIDGetAccelerationWithKey' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] if (IOHIDGetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAccelerationType), &originalMouseSpeed) == kIOReturnSuccess) ^ in_sdl.c:169:8: 'IOHIDSetAccelerationWithKey' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] if (IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAccelerationType), -1.0) != kIOReturnSuccess) ^ in_sdl.c:194:7: 'IOHIDSetAccelerationWithKey' is deprecated: first deprecated in macOS 10.12 [-Wdeprecated-declarations] if (IOHIDSetAccelerationWithKey(mouseDev, CFSTR(kIOHIDMouseAccelerationType), originalMouseSpeed) != kIOReturnSuccess) ^
- Loading branch information