示例#1
0
static void init()
{
    if(PhysCont_PhysicalControllerPresent())
    {
        getInput = &getInputFromPhysCont;
        usingPhysicalController = true;
    }else
    {
        getInput = &getInputFromAnalCont;
    }
}
示例#2
0
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
}