Ok, seems like I found the solution. If I override dispatchKeyEvent
and cancel dispatching onKey events to the AdView, then the gamepad works fine. Not sure if it's OK to do this, but it works.
public class MyAdView extends AdView {
public MyAdView(Activity activity, AdSize adSize, String adUnitId) {
super(activity, adSize, adUnitId);
}
@Override
public boolean dispatchKeyEvent(KeyEvent event) {
return false;
}
}