summaryrefslogtreecommitdiffstats
path: root/docs/html/training
diff options
context:
space:
mode:
authorQuddus Chong <quddusc@google.com>2015-01-16 11:35:07 -0800
committerQuddus Chong <quddusc@google.com>2015-01-16 11:36:18 -0800
commit03c15cf4c9806e40356a12c08d845e321cb3e661 (patch)
tree64ff686e7a1313f4a543847666e74207ef1d8854 /docs/html/training
parent8304b8b9ceae4c35ddf4ae80b552127e5ed77ce4 (diff)
downloadframeworks_base-03c15cf4c9806e40356a12c08d845e321cb3e661.zip
frameworks_base-03c15cf4c9806e40356a12c08d845e321cb3e661.tar.gz
frameworks_base-03c15cf4c9806e40356a12c08d845e321cb3e661.tar.bz2
docs: Fixed typos in Game Controller training code snippets.
bug: 17959906 Change-Id: I2fa1b01704a69536b3d27fe6aa96c441d7f8fb27
Diffstat (limited to 'docs/html/training')
-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