Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 930ac01f authored by Quddus Chong's avatar Quddus Chong Committed by Android Git Automerger
Browse files

am de0a8700: Merge "docs: Fixed typos in Game Controller training code...

am de0a8700: Merge "docs: Fixed typos in Game Controller training code snippets. bug: 17959906" into lmp-docs

* commit 'de0a8700':
  docs: Fixed typos in Game Controller training code snippets. bug: 17959906
parents 90d2aca7 de0a8700
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -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