Hello guys I’m working in a game and I want to support Google play services with Controller support, right now I’m using Carlos Eduardo Piñán Indacochea
(cpinan) library to support google play services, but I saw the example to support controllers, they use the GameControllerActivity in order to support for example Moga controllers.
public class AppActivity extends Cocos2dxActivity
{ //How can we use game controllers using Cocos2dxActivity
//Instead using GameControllerActivity
}
I know I can use this but the google play services framework will stop working
public class AppActivity extends GameControllerActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//The standard controller,without doing anything special. e.g: Amazon Fire TV
//Manually specify an adapter.
this.connectController(DRIVERTYPE_NIBIRU);
//this.connectController(DRIVERTYPE_MOGA);
//this.connectController(DRIVERTYPE_OUYA);
}
}