Simulate Android D-pad through ADB

Recently, I had to deal with testing D-pad functionality in my app. Unfortunately, my device doesn’t have a D-pad.

So I rigged up this little script to simulate a dpad from the console of my desktop.

 

It is an interactive script with no command line arguments.

Usage:

Insert: Begin text insert mode.

Arrows: D-pad

Enter/Space: D-pad middle button

 

Enjoy.

Leave a Reply

Your email address will not be published. Required fields are marked *