![]() The framework will post GCControllerDidConnectNotification and GCControllerDidDisconnectNotification, as with native controllers.Call scanForControllers] when you want to scan for controllers.Call when your app starts (uses private IOKit API).To listen for steam controllers, either:.Depending on how your game works, you might not need any changes at all. UsageĮverything should work like with MFi controllers. Run carthage update to build the framework and drag the built amework into your Xcode project. To integrate SteamController into your Xcode project using Carthage, specify it in your Cartfile: github "zydeco/SteamController" You can install it with the following command: Starting on iOS 13, your app's ist needs a NSBluetoothAlwaysUsageDescription key with a description of how it uses bluetooth.ĬocoaPods is a dependency manager for Cocoa projects.A game supporting MFi controllers using the GameController framework.iOS 12 or later (not tested on earlier versions).Tapping on a controller from the list will open the settings view for that controller, where you can also see the battery level, and change its configuration (seen above). Connected controllers will appear in the list, and the UI will reflect the state of the controller. ![]() In the example app, power on your controller (in BLE or BLE pairing mode) and press Scan. To run the example project, clone the repo, and run the SteamControllerTestApp target. Drop-in support for Steam Controllers for iOS and tvOS.įor information about how to use a Steam Controller in Bluetoth LE mode, see Steam Controller BLE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |