blob: 29764204bca1bb8749162dd41a8685cd5839351c [file] [log] [blame]
page.title=Supporting Game Controllers
page.tags="game controller"
<div id="tb-wrapper">
<div id="tb">
<!-- Required platform, tools, add-ons, devices, knowledge, etc. -->
<h2>Dependencies and prerequisites</h2>
<li>Android 2.3 (API level 9) or higher.</li>
<h2>You should also read</h2>
class="external-link" target="_blank">Key Layout Files</a></li>
<li><a href="{@docRoot}guide/topics/ui/ui-events.html">Input Events</a></li>
<h2>Try it out</h2>
<div class="download-box">
<a href=""
class="button">Download the sample</a>
<p class="filename"></p>
<p>You can greatly enhance the user experience in your game by letting
players use their favorite game controllers. The Android framework provides
APIs for detecting and processing user input from game controllers.</p>
<p>This class shows how to make your game work consistently with game
controllers across different Android API levels (API level 9 and up),
and how to enhance the gaming experience for players by supporting multiple
controllers simultaneously in your app.</p>
<dt><b><a href="controller-input.html">Handling Controller
<dd>Learn how to handle user input from common
input elements on game controllers, including directional pad (D-pad)
buttons, gamepad buttons, and joysticks.</dd>
<dt><b><a href="compatibility.html">Supporting Controllers Across Android
<dd>Learn how to make game controllers behave the same across
devices running different versions of Android.</dd>
<dt><b><a href="multiple-controllers.html">Supporting Multiple Game
<dd>Learn how to detect and use multiple game controllers that
are simultaneously connected.</dd>