Skip to content

Instantly share code, notes, and snippets.

@defHLT
Created March 26, 2015 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defHLT/bd3e681b1aa640c8048e to your computer and use it in GitHub Desktop.
Save defHLT/bd3e681b1aa640c8048e to your computer and use it in GitHub Desktop.
-> ice ~ % adb shell input
Usage: input [<source>] <command> [<arg>...]
The sources are:
mouse
keyboard
joystick
touchnavigation
touchpad
trackball
stylus
dpad
touchscreen
gamepad
The commands and default sources are:
text <string> (Default: touchscreen)
keyevent [--longpress] <key code number or name> ... (Default: keyboard)
tap <x> <y> (Default: touchscreen)
swipe <x1> <y1> <x2> <y2> [duration(ms)] (Default: touchscreen)
press (Default: trackball)
roll <dx> <dy> (Default: trackball)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment