From b8590f1aecb0f0a73e267d8dafa5eab96865dd45 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 29 Oct 2018 15:51:38 -0400 Subject: [PATCH] README-ios: added a note about enabling hidapi. --- docs/README-ios.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/README-ios.md b/docs/README-ios.md index bf34fe482f752..445524f5b81ee 100644 --- a/docs/README-ios.md +++ b/docs/README-ios.md @@ -228,6 +228,22 @@ Textures: Loading Shared Objects: This is disabled by default since it seems to break the terms of the iOS SDK agreement for iOS versions prior to iOS 8. It can be re-enabled in SDL_config_iphoneos.h. +============================================================================== +Notes -- CoreBluetooth.framework +============================================================================== + +SDL_JOYSTICK_HIDAPI is disabled by default. It can give you access to a lot +more game controller devices, but it requires permission from the user before +your app will be able to talk to the Bluetooth hardware. "Made For iOS" +branded controllers do not need this as we don't have to speak to them +directly with raw bluetooth, so many apps can live without this. + +You'll need to link with CoreBluetooth.framework and add something like this +to your Info.plist: + +NSBluetoothPeripheralUsageDescription +MyApp would like to remain connected to nearby bluetooth Game Controllers and Game Pads even when you're not using the app. + ============================================================================== Game Center ==============================================================================