summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Quddus Chong <quddusc@google.com> 2015-01-16 22:44:07 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-01-16 22:44:07 +0000
commit20eb8093b634704ac29fda85e9c1c916a31bde29 (patch)
tree99fac518f1dab032dc14a556c50a038f1f717cc1
parentff96449f1d3092182d61d5e553042742d5bf71c8 (diff)
parent2f63207d873fcd2c39488f78b5cb1b67f868f232 (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.jd5
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() &amp; InputDevice.SOURCE_JOYSTICK) ==
InputDevice.SOURCE_JOYSTICK &amp;&amp;
- 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