Input for iOS devices
Understand how to detect and handle input from touch, game controllers, and onboard sensors on iOS devices.
Read time 1 minuteLast updated 13 days ago
Mobile devices are the primary target for iOS applications. Unity provides an Input System package to handle user input on iOS devices. This input solution is enabled by default for new projects.
The Input System package supports a variety of input sources on iOS devices, including touchscreen, game controllers, and sensors such as the accelerometer and gyroscope. For more information, refer to Supported input devices in the Input System package documentation.
Game controller support
Unity supports Made for iOS (MFi) game controllers on iOS devices. To handle controller input, use the Input System package APIs. The same button-remapping workflow applies to iOS and tvOS. For the steps and the list of supported controllers, refer to Remap buttons for a MFi controller.
iOS touchscreen keyboard
iOS devices include a touchscreen keyboard. When you select editable UI elements such as Input Fields, Unity automatically activates the iOS touchscreen keyboard and handles the input. For more information on how to manually activate and configure the iOS touchscreen keyboard, refer to Mobile Keyboard.