title: Android: is it possible to fire/emulate D-Pad KeyEvent?
body: <p>I have a game for Android that uses hardware keys (D-pad). There are lots of lines of code in my onKeyDown and onKeyUp callbacks throughout the program.</p>
  
  <p>Now I'm trying to add support for a bluetooth gamepad, which generates its own events when various keys/sticks/triggers are pressed. And I would like to "mirror" these events from the gamepad as events from the D-pad, to use the existing onKeyDown and onKeyUp callbacks.</p>
  
  <p>In other words I want to generate/emulate pressing of D-pad keys programmatically. Is it possible?</p>