Exemple #1
0
        private void ConnectButton_Click(object sender, EventArgs e)
        {
            if (ConnectToConsole())
            {
                CPUKeyLabel.Text         = xbCon.GetCPUKey();
                TitleIDLabel.Text        = String.Format("Current Title ID: 0x{0}", xbCon.GetCurrentTitleId().ToString("X"));
                ConsoleDebugIPLabel.Text = String.Format("Console Debug IP: {0}", xbCon.GetConsoleIP());

                //XBOX_AUTOMATION_GAMEPAD gPad = new XBOX_AUTOMATION_GAMEPAD();
                //gPad.Buttons = XboxAutomationButtonFlags.Xbox360_Button;
                //
                //xbCon.XboxAutomation.SetGamepadState(0, ref gPad);
                //
                //gPad.Buttons = 0;
                //xbCon.XboxAutomation.SetGamepadState(0, ref gPad);
            }
            else
            {
                CPUKeyLabel.Text         = "00000000000000000000000000000000";
                TitleIDLabel.Text        = "Current Title ID: 0x00000000";
                ConsoleDebugIPLabel.Text = "Console Debug IP: 192.168.1.1";
            }
        }