Exemple #1
0
void InitSetup(void)
{
   int i;
   //RegisterShutdownFunction( ShutDown );

   //StartWindows();
   //initkeys();
   //CONFIG_GetSetupFilename();
   //InitializeKeyDefList();
   //CONFIG_ReadSetup();
   if (CONTROL_Startup( 1, &GetTime, /*120*/ 140 ))
       exit(1);
   SetupGameButtons();
   CONFIG_SetupMouse();
   CONFIG_SetupJoystick();

   CONTROL_JoystickEnabled = (UseJoystick && CONTROL_JoyPresent);
   CONTROL_MouseEnabled = (UseMouse && CONTROL_MousePresent);

   for (i=0;i<joynumaxes;i++)
        setjoydeadzone(i,JoystickAnalogueDead[i],JoystickAnalogueSaturate[i]);
   /*{
   int i;
   CONTROL_PrintKeyMap();
   for(i=0;i<NUMGAMEFUNCTIONS;i++) CONTROL_PrintControlFlag(i);
   CONTROL_PrintAxes();
   }*/

   if (RTSCustom[0] != 0)
       RTS_Init(RTSCustom);
   else
       RTS_Init(RTSName);
}
Exemple #2
0
void InitSetup(void)
{
    int i;
    //RegisterShutdownFunction( ShutDown );

    //StartWindows();
    //initkeys();
    //CONFIG_GetSetupFilename();
    //InitializeKeyDefList();
    //CONFIG_ReadSetup();
    if (CONTROL_Startup(1, &GetTime, /*120*/ 140)) exit(1);
    SetupGameButtons();
    CONFIG_SetupMouse();
    CONFIG_SetupJoystick();

    CONTROL_JoystickEnabled = (UseJoystick && CONTROL_JoyPresent);
    CONTROL_MouseEnabled = (UseMouse && CONTROL_MousePresent);

    /*{
    int i;
    CONTROL_PrintKeyMap();
    for(i=0;i<NUMGAMEFUNCTIONS;i++) CONTROL_PrintControlFlag(i);
    CONTROL_PrintAxes();
    }*/

    RTS_Init(RTSName);
}