mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Only include CoreHaptics if we're building with rumble support
This commit is contained in:
parent
75d5be974c
commit
a558409b2e
@ -42,7 +42,6 @@
|
|||||||
#if !TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
#import <CoreMotion/CoreMotion.h>
|
#import <CoreMotion/CoreMotion.h>
|
||||||
#endif
|
#endif
|
||||||
#import <CoreHaptics/CoreHaptics.h>
|
|
||||||
|
|
||||||
#ifdef SDL_JOYSTICK_MFI
|
#ifdef SDL_JOYSTICK_MFI
|
||||||
#import <GameController/GameController.h>
|
#import <GameController/GameController.h>
|
||||||
@ -80,6 +79,10 @@ static id disconnectObserver = nil;
|
|||||||
#define ENABLE_MFI_RUMBLE
|
#define ENABLE_MFI_RUMBLE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef ENABLE_MFI_RUMBLE
|
||||||
|
#import <CoreHaptics/CoreHaptics.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* SDL_JOYSTICK_MFI */
|
#endif /* SDL_JOYSTICK_MFI */
|
||||||
|
|
||||||
#if !TARGET_OS_TV
|
#if !TARGET_OS_TV
|
||||||
|
Loading…
Reference in New Issue
Block a user