unplugged-vendor/development/samples/USB/MissileLauncher
2025-10-06 13:59:42 +00:00
..
res Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
src/com/android/missilelauncher Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
_index.html Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
Android.bp Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
AndroidManifest.xml Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
default.properties Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00
README.txt Initial commit: AOSP 12 vendor with modifications for Unplugged OS 2025-10-06 13:59:42 +00:00

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()