Exemple #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();
        }
Exemple #2
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();
        }
Exemple #3
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();
        }
Exemple #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();
        }