summaryrefslogtreecommitdiffstats
path: root/docs/html
diff options
context:
space:
mode:
authorQuddus Chong <quddusc@google.com>2015-01-16 22:03:31 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-01-16 22:03:33 +0000
commitde0a87007b987a76af2ddd526dd473ad83fbb74b (patch)
treec38912c889558d458eafc792058371494d9f55fc /docs/html
parent217d145d49940d28a3c5914d94ce2e56f243301b (diff)
parent03c15cf4c9806e40356a12c08d845e321cb3e661 (diff)
downloadframeworks_base-de0a87007b987a76af2ddd526dd473ad83fbb74b.zip
frameworks_base-de0a87007b987a76af2ddd526dd473ad83fbb74b.tar.gz
frameworks_base-de0a87007b987a76af2ddd526dd473ad83fbb74b.tar.bz2
Merge "docs: Fixed typos in Game Controller training code snippets. bug: 17959906" into lmp-docs
Diffstat (limited to 'docs/html')
-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 25fcde4..70e0585 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