The Input SDK provides a unified interface from which players can discover the mouse and keyboard bindings for any game they wish to play on Google Play Games. At any point during gameplay, a player can summon the Input SDK overlay in a Google Play Games title as seen in this screenshot:
This SDK is required for Google Play Games because Android mobile games are designed around a touchscreen for player input. When developing for PCs, games need to support a mouse and keyboard instead. You should only enable this SDK on Google Play Games.
The Input SDK is a pivotal cognitive component for keeping your players happy and engaged with your game wherever and whenever they want to play. One reason is that Google Play Games allows players to pick up their mobile games on a PC without restarting and replaying the tutorials. Another reason is that the player experience afforded by a mouse and keyboard is different than that of a touchscreen.
For information about integrating the Input SDK, see Get started with the Input SDK.
Download the Input SDK
Before you download the Input SDK, read the following Google Input SDK terms of service and data collection requirements.
Google APIs Terms of Service
The Google APIs Terms of Service governs your use of the Google Input SDK.
The Google Input SDK may collect performance and stability data to improve our product, including the following data:
- Number of calls to the Input SDK input methods
- Number of non-successful calls to Input SDK input methods
- Error rate of calling the Input SDK input methods (calculated by the 2 previous metrics)
- Numbers of defined single key/mouse action and combo key/mouse actions (in aggregation)
- Game’s package name
- Game’s package version
- Input SDK version
- Client variants such as Google Play Games PC or other clients
The Input SDK is available on the Google Maven Repository. See the Getting Started Guide for instructions on how to your Java or Kotlin project.
Download the Input SDK for Unity from the Play Unity Plugins GitHub repository.