Пример #1
0
        public void Run(IGuiExternalInterface IGuiExternalInterface)
        {
            CommonGuiDisplayOpengl = new CommonGuiDisplayOpengl(IGuiExternalInterface, this);
            CommonGuiInput = new CommonGuiInput(IGuiExternalInterface);
            this.IGuiExternalInterface = IGuiExternalInterface;
            //var Window = new Window("Hello world!");
            Application.Init();
            Window = new Window("Soywiz's Psp Emulator");
            this.GLWidget = new GLWidget(OpenglGpuImpl.UsedGraphicsMode);
            Window.WindowPosition = WindowPosition.Center;
            Window.SetSizeRequest(480, 272);
            Window.Child = GLWidget;
            GLWidget.RenderFrame += GLWidget_RenderFrame;
            GLWidget.SetSizeRequest(480, 272);
            //GLWidget.ShowAll();
            Window.Removed += Window_Removed;
            Window.KeyPressEvent += Window_KeyPressEvent;
            Window.KeysChanged += Window_KeysChanged;
            Window.KeyReleaseEvent += Window_KeyReleaseEvent;

            Window.ShowAll();

            //GLWidget.KeyPressEvent += Window_KeyPressEvent;
            //GLWidget.KeyReleaseEvent += Window_KeyReleaseEvent;

            PspDisplay.DrawEvent += PspDisplay_DrawEvent;

            OpenOpenDialog();
            CommonGuiInput.ReLoadControllerConfig();

            Application.Run();
        }
Пример #2
0
        public void Run(IGuiExternalInterface IGuiExternalInterface)
        {
            CommonGuiDisplayOpengl     = new CommonGuiDisplayOpengl(IGuiExternalInterface, this);
            CommonGuiInput             = new CommonGuiInput(IGuiExternalInterface);
            this.IGuiExternalInterface = IGuiExternalInterface;
            //var Window = new Window("Hello world!");
            Application.Init();
            Window                = new Window("Soywiz's Psp Emulator");
            this.GLWidget         = new GLWidget(OpenglGpuImpl.UsedGraphicsMode);
            Window.WindowPosition = WindowPosition.Center;
            Window.SetSizeRequest(480, 272);
            Window.Child          = GLWidget;
            GLWidget.RenderFrame += GLWidget_RenderFrame;
            GLWidget.SetSizeRequest(480, 272);
            //GLWidget.ShowAll();
            Window.Removed         += Window_Removed;
            Window.KeyPressEvent   += Window_KeyPressEvent;
            Window.KeysChanged     += Window_KeysChanged;
            Window.KeyReleaseEvent += Window_KeyReleaseEvent;

            Window.ShowAll();

            //GLWidget.KeyPressEvent += Window_KeyPressEvent;
            //GLWidget.KeyReleaseEvent += Window_KeyReleaseEvent;

            PspDisplay.DrawEvent += PspDisplay_DrawEvent;

            OpenOpenDialog();
            CommonGuiInput.ReLoadControllerConfig();

            Application.Run();
        }
Пример #3
0
        public PspDisplayForm(IGuiExternalInterface IGuiExternalInterface)
        {
            GuiThread = Thread.CurrentThread;
            Singleton = this;
            Application.AddMessageFilter(this);

            this.IGuiExternalInterface = IGuiExternalInterface;

            InitializeComponent();
            HandleCreated += new EventHandler(PspDisplayForm_HandleCreated);
            CommonGuiInput = new CommonGuiInput(IGuiExternalInterface);

            this.ShowIcon = ShowMenus;
            this.MainMenuStrip.Visible = ShowMenus;

            /*
            this.MainMenuStrip = null;
            this.PerformLayout();
            */
            //this.MainMenuStrip.Visible = false;

            //GuiConfig.DefaultDisplayScale
            DisplayScale = StoredConfig.DisplayScale;
            RenderScale = StoredConfig.RenderScale;

            updateResumePause();
            UpdateCheckMenusFromConfig();
            updateDebugGpu();
            CommonGuiInput.ReLoadControllerConfig();
            UpdateRecentList();
        }
Пример #4
0
        public PspDisplayForm(IGuiExternalInterface IGuiExternalInterface)
        {
            GuiThread = Thread.CurrentThread;
            Singleton = this;
            Application.AddMessageFilter(this);

            this.IGuiExternalInterface = IGuiExternalInterface;

            InitializeComponent();
            HandleCreated += new EventHandler(PspDisplayForm_HandleCreated);
            CommonGuiInput = new CommonGuiInput(IGuiExternalInterface);

            this.ShowIcon = ShowMenus;
            this.MainMenuStrip.Visible = ShowMenus;

            /*
             * this.MainMenuStrip = null;
             * this.PerformLayout();
             */
            //this.MainMenuStrip.Visible = false;

            //GuiConfig.DefaultDisplayScale
            DisplayScale = StoredConfig.DisplayScale;
            RenderScale  = StoredConfig.RenderScale;

            updateResumePause();
            UpdateCheckMenusFromConfig();
            updateDebugGpu();
            CommonGuiInput.ReLoadControllerConfig();
            UpdateRecentList();
        }
Пример #5
0
 public AboutForm(Form ParentForm, IGuiExternalInterface IGuiExternalInterface)
 {
     this.Icon = ParentForm.Icon;
     InitializeComponent();
     GpuPluginInfoLabel.Text = "GPU " + IGuiExternalInterface.GetGpuPluginInfo().ToString();
     AudioPluginInfoLabel.Text = "Audio " + IGuiExternalInterface.GetAudioPluginInfo().ToString();
     versionLabel.Text = "Version: " + PspGlobalConfiguration.CurrentVersion + " : r" + PspGlobalConfiguration.CurrentVersionNumeric;
     GitRevisionValueLinkLabel.Text = PspGlobalConfiguration.GitRevision;
 }
Пример #6
0
 public AboutForm(Form ParentForm, IGuiExternalInterface IGuiExternalInterface)
 {
     this.Icon = ParentForm.Icon;
     InitializeComponent();
     GpuPluginInfoLabel.Text   = "GPU " + IGuiExternalInterface.GetGpuPluginInfo().ToString();
     AudioPluginInfoLabel.Text = "Audio " + IGuiExternalInterface.GetAudioPluginInfo().ToString();
     versionLabel.Text         = "Version: " + PspGlobalConfiguration.CurrentVersion + " : r" +
                                 PspGlobalConfiguration.CurrentVersionNumeric;
     GitRevisionValueLinkLabel.Text = PspGlobalConfiguration.GitRevision;
 }
Пример #7
0
        public PspDisplayForm(IGuiExternalInterface IGuiExternalInterface)
        {
            this.IGuiExternalInterface = IGuiExternalInterface;

            InitializeComponent();
            DisplayScale = 1;

            BufferGraphics = Graphics.FromImage(Buffer);
            //BufferGraphics.Clear(Color.Red);
            BufferGraphics.Clear(Color.Black);

            updateResumePause();
            updateDebugSyscalls();
            updateDebugGpu();

            var Timer = new Timer();
            Timer.Interval = 1000 / 60;
            Timer.Tick += new EventHandler(Timer_Tick);
            Timer.Start();
        }
Пример #8
0
        public PspDisplayForm(IGuiExternalInterface IGuiExternalInterface)
        {
            this.IGuiExternalInterface = IGuiExternalInterface;

            InitializeComponent();
            DisplayScale = 1;

            BufferGraphics = Graphics.FromImage(Buffer);
            //BufferGraphics.Clear(Color.Red);
            BufferGraphics.Clear(Color.Black);

            updateResumePause();
            updateDebugSyscalls();
            updateDebugGpu();

            var Timer = new Timer();

            Timer.Interval = 1000 / 60;
            Timer.Tick    += new EventHandler(Timer_Tick);
            Timer.Start();
        }
Пример #9
0
        public PspDisplayForm(IGuiExternalInterface IGuiExternalInterface, bool ShowMenus = true, bool AutoLoad = false, int DefaultDisplayScale = 1)
        {
            this.IGuiExternalInterface = IGuiExternalInterface;
            this.ShowMenus = ShowMenus;
            this.AutoLoad = AutoLoad;

            InitializeComponent();
            HandleCreated += new EventHandler(PspDisplayForm_HandleCreated);

            this.ShowIcon = ShowMenus;
            this.MainMenuStrip.Visible = ShowMenus;

            /*
            this.MainMenuStrip = null;
            this.PerformLayout();
            */
            //this.MainMenuStrip.Visible = false;

            DefaultDisplayScale = IGuiExternalInterface.GetConfig().StoredConfig.DisplayScale;

            DisplayScale = DefaultDisplayScale;

            BufferGraphics = Graphics.FromImage(Buffer);
            //BufferGraphics.Clear(Color.Red);
            BufferGraphics.Clear(Color.Black);

            updateResumePause();
            UpdateCheckMenusFromConfig();
            updateDebugGpu();
            ReLoadControllerConfig();
            UpdateRecentList();

            var Timer = new System.Windows.Forms.Timer();
            Timer.Interval = 1000 / 60;
            Timer.Tick += new EventHandler(Timer_Tick);
            Timer.Start();
        }
Пример #10
0
 public static void RunStart(IGuiExternalInterface IGuiExternalInterface)
 {
     new GtkProgram().Run(IGuiExternalInterface);
 }
 public CommonGuiDisplayOpengl(IGuiExternalInterface IGuiExternalInterface, IGuiWindowInfo IGuiWindowInfo)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
     this.IGuiWindowInfo        = IGuiWindowInfo;
 }
Пример #12
0
 public static void RunStart(IGuiExternalInterface IGuiExternalInterface)
 {
     new GtkProgram().Run(IGuiExternalInterface);
 }
Пример #13
0
 public static void RunStart(IGuiExternalInterface IGuiExternalInterface)
 {
     if (Platform.OS == OS.Windows)
     {
         Application.EnableVisualStyles();
     }
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new PspDisplayForm(IGuiExternalInterface));
 }
 public CommonGuiInput(IGuiExternalInterface IGuiExternalInterface)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
 }
Пример #15
0
 public CommonGuiInput(IGuiExternalInterface IGuiExternalInterface)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
 }
Пример #16
0
 public CommonGuiDisplayOpengl(IGuiExternalInterface IGuiExternalInterface, IGuiWindowInfo IGuiWindowInfo)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
     this.IGuiWindowInfo = IGuiWindowInfo;
 }