コード例 #1
0
ファイル: GtkProgram.cs プロジェクト: soywiz/cspspemu
        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
ファイル: PspDisplayForm.cs プロジェクト: soywiz/cspspemu
        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
ファイル: AboutForm.cs プロジェクト: soywiz/cspspemu
 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
ファイル: PspDisplayForm.cs プロジェクト: mrcmunir/cspspemu
        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
ファイル: PspDisplayForm.cs プロジェクト: mrcmunir/cspspemu
        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
ファイル: PspDisplayForm.cs プロジェクト: e-COS/cspspemu
        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);
 }
コード例 #11
0
 public CommonGuiDisplayOpengl(IGuiExternalInterface IGuiExternalInterface, IGuiWindowInfo IGuiWindowInfo)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
     this.IGuiWindowInfo        = IGuiWindowInfo;
 }
コード例 #12
0
ファイル: GtkProgram.cs プロジェクト: soywiz/cspspemu
 public static void RunStart(IGuiExternalInterface IGuiExternalInterface)
 {
     new GtkProgram().Run(IGuiExternalInterface);
 }
コード例 #13
0
ファイル: PspDisplayForm.cs プロジェクト: soywiz/cspspemu
 public static void RunStart(IGuiExternalInterface IGuiExternalInterface)
 {
     if (Platform.OS == OS.Windows)
     {
         Application.EnableVisualStyles();
     }
     Application.SetCompatibleTextRenderingDefault(false);
     Application.Run(new PspDisplayForm(IGuiExternalInterface));
 }
コード例 #14
0
 public CommonGuiInput(IGuiExternalInterface IGuiExternalInterface)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
 }
コード例 #15
0
ファイル: CommonGuiInput.cs プロジェクト: soywiz/cspspemu
 public CommonGuiInput(IGuiExternalInterface IGuiExternalInterface)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
 }
コード例 #16
0
 public CommonGuiDisplayOpengl(IGuiExternalInterface IGuiExternalInterface, IGuiWindowInfo IGuiWindowInfo)
 {
     this.IGuiExternalInterface = IGuiExternalInterface;
     this.IGuiWindowInfo = IGuiWindowInfo;
 }