android13/development/samples/USB/MissileLauncher
liiir1985 7f62dcda9f initial 2024-06-22 20:45:49 +08:00
..
res initial 2024-06-22 20:45:49 +08:00
src/com/android/missilelauncher initial 2024-06-22 20:45:49 +08:00
Android.bp initial 2024-06-22 20:45:49 +08:00
AndroidManifest.xml initial 2024-06-22 20:45:49 +08:00
README.txt initial 2024-06-22 20:45:49 +08:00
_index.html initial 2024-06-22 20:45:49 +08:00
default.properties initial 2024-06-22 20:45:49 +08:00

README.txt

MissileLauncher is a simple program that controls Dream Cheeky USB missile launchers.
You control the left/right/up/down orientation of the launcher using the accelerometer.
Tilt the tablet to change the direction of the launcher.
Pressing the "Fire" button will fire one missile.

This program serves as an example of the following USB host features:

- filtering for multiple devices based on vendor and product IDs (see device_filter.xml)

- Sending control requests on endpoint zero that contain data

- Receiving packets on an interrupt endpoint using a thread that calls
  UsbRequest.queue and UsbDeviceConnection.requestWait()