From 03c15cf4c9806e40356a12c08d845e321cb3e661 Mon Sep 17 00:00:00 2001 From: Quddus Chong Date: Fri, 16 Jan 2015 11:35:07 -0800 Subject: [PATCH] docs: Fixed typos in Game Controller training code snippets. bug: 17959906 Change-Id: I2fa1b01704a69536b3d27fe6aa96c441d7f8fb27 --- docs/html/training/game-controllers/controller-input.jd | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/html/training/game-controllers/controller-input.jd b/docs/html/training/game-controllers/controller-input.jd index 25fcde4ae5c18..70e05852c5891 100644 --- a/docs/html/training/game-controllers/controller-input.jd +++ b/docs/html/training/game-controllers/controller-input.jd @@ -518,7 +518,7 @@ public class GameView extends View { // Check that the event came from a game controller if ((event.getSource() & InputDevice.SOURCE_JOYSTICK) == InputDevice.SOURCE_JOYSTICK && - event.getAction() == MotionEvent.ACTION_MOVE) + event.getAction() == MotionEvent.ACTION_MOVE) { // Process all historical movement samples in the batch final int historySize = event.getHistorySize(); @@ -609,9 +609,6 @@ private void processJoystickInput(MotionEvent event, } // Update the ship object based on the new x and y values - ... - - return true; }

To support game controllers that have more sophisticated