Lines Matching refs:controller
31 maintaining a mapping between player avatars and each controller device and
32 processing controller input events appropriately.
36 <p>When a game controller is connected to an Android device, the system
38 …evice#getDeviceIds() InputDevice.getDeviceIds()}, as shown in <a href="controller-input.html#input…
49 to associate a player's avatar with a specific controller. In this example, the
51 player avatar is created in-game when a new controller is attached by a user,
52 and removed when its associated controller is removed.
58 listener callbacks, your game can identify the game controller's device ID when a
59 controller is added or removed. This detection is compatible with Android 2.3
103 this to determine which controller the input event came from, and update the
104 player avatar associated with that controller.
107 corresponding to a game controller device ID, and update the game based on the
108 user's button press on that controller.
128 game controller disconnects, you should pause the game and ask if the user