diff options
| author | 2015-01-16 22:44:07 +0000 | |
|---|---|---|
| committer | 2015-01-16 22:44:07 +0000 | |
| commit | 20eb8093b634704ac29fda85e9c1c916a31bde29 (patch) | |
| tree | 99fac518f1dab032dc14a556c50a038f1f717cc1 | |
| parent | ff96449f1d3092182d61d5e553042742d5bf71c8 (diff) | |
| parent | 2f63207d873fcd2c39488f78b5cb1b67f868f232 (diff) | |
am 2f63207d: am a6491229: am 930ac01f: am de0a8700: Merge "docs: Fixed typos in Game Controller training code snippets. bug: 17959906" into lmp-docs
* commit '2f63207d873fcd2c39488f78b5cb1b67f868f232':
docs: Fixed typos in Game Controller training code snippets. bug: 17959906
| -rw-r--r-- | docs/html/training/game-controllers/controller-input.jd | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/docs/html/training/game-controllers/controller-input.jd b/docs/html/training/game-controllers/controller-input.jd index 25fcde4ae5c1..70e05852c589 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; } </pre> <p>To support game controllers that have more sophisticated |