SteamControllerMode
Objective-C
enum SteamControllerMode : NSUInteger {}
Swift
enum SteamControllerMode : UInt
Represents a Steam Controller’s behaviour. This allows changing between Game Controller emulation (the default), and keyboard/mouse.
In Keyboard/Mouse mode, the controls are mapped to the following keys:
- Left trackpad: arrows
- Analog stick: arrows
- Analog stick button: F4
- A: return
- B: escape
- Back: tab
- Forward: escape
- Left grip: F7
- Right grip: F9
- Left bumper: space
- Right bumper: F9
Other controls are not mapped to keys.
-
The controller behaves as an MFi Game Controller.
Declaration
Objective-C
SteamControllerModeGameController
Swift
case gameController = 0
-
The controller behaves as a keyboard and mouse.
Declaration
Objective-C
SteamControllerModeKeyboardAndMouse
Swift
case keyboardAndMouse = 1