コード例 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Game_HeavyFire3Pc_ScpVbus(string RomName, bool EnableP2, bool Verbose)
            : base()
        {
            GetScreenResolution();

            _RomName             = RomName;
            _VerboseEnable       = Verbose;
            _ProcessHooked       = false;
            _Target_Process_Name = "HeavyFire3";

            _EnableP2 = EnableP2;

            ReadGameData();

            if (EnableP2)
            {
                /*** Creating a virtual X360 gamepad for player 2 ***/
                _XOutputManager = new XOutput();
                InstallX360Gamepad(2);
            }

            _tProcess          = new Timer();
            _tProcess.Interval = 500;
            _tProcess.Tick    += new EventHandler(tProcess_Tick);
            _tProcess.Enabled  = true;
            _tProcess.Start();

            WriteLog("Waiting for Windows Game " + _RomName + " game to hook.....");
        }
コード例 #2
0
ファイル: Game_BE_OLD.cs プロジェクト: mpalese79/DemulShooter
        /// <summary>
        /// Constructor
        /// </summary>
        public Game_BE_OLD(string RomName, bool Verbose)
            : base()
        {
            GetScreenResolution();

            _RomName             = RomName;
            _VerboseEnable       = Verbose;
            _ProcessHooked       = false;
            _Target_Process_Name = "BEGame";

            ReadGameData();
            _tProcess          = new Timer();
            _tProcess.Interval = 500;
            _tProcess.Tick    += new EventHandler(tProcess_Tick);
            _tProcess.Enabled  = true;
            _tProcess.Start();

            /* Creating X360 controller */
            _XOutputManager = new XOutput();
            InstallX360Gamepad(2);
            ApplyKeyboardHook();

            WriteLog("Waiting for Windows Game " + _RomName + " game to hook.....");
        }
コード例 #3
0
        /// <summary>
        /// Constructor
        /// </summary>
        public Game_GvrFarCry(string RomName, bool Verbose)
            : base()
        {
            GetScreenResolution();

            _RomName             = RomName;
            _VerboseEnable       = Verbose;
            _ProcessHooked       = false;
            _Target_Process_Name = "FarCry_r";

            ReadGameData();

            _XOutputManager = new XOutput();
            InstallX360Gamepad(1);
            InstallX360Gamepad(2);

            _tProcess          = new Timer();
            _tProcess.Interval = 500;
            _tProcess.Tick    += new EventHandler(tProcess_Tick);
            _tProcess.Enabled  = true;
            _tProcess.Start();

            WriteLog("Waiting for Global VR " + _RomName + " game to hook.....");
        }