static void init() { if(PhysCont_PhysicalControllerPresent()) { getInput = &getInputFromPhysCont; usingPhysicalController = true; }else { getInput = &getInputFromAnalCont; } }
static void init() { //force on screen control for touch devices #ifndef __ANDROID__ if(PhysCont_PhysicalControllerPresent()) { getInput = &getInputFromPhysCont; usingPhysicalController = true; }else { getInput = &dummy;/* printf("No Physical controllers connected. Exiting.\n"); exit(-1);*/ }/*else { getInput = &getInputFromAnalCont; }*/ #else getInput = &getInputFromTouchscreen; #endif }