/[EmuXPortal]/branches/mono/EmuXPortal/Form1.cs
ViewVC logotype

Diff of /branches/mono/EmuXPortal/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branches/mono/EmuXPortal/Form1.cs	2016/03/17 07:49:41	272
+++ branches/mono/EmuXPortal/Form1.cs	2016/03/17 08:12:45	273
@@ -230,7 +230,7 @@
                 return; // stop processing other keys
 
             }
-			if (e.KeyCode == Keys.Up) {
+			if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Left) {
 				if (OSInfo.OSIsUnix) {
 					rom_flow.SuspendLayout ();
 					var ctl = game_ctrl_get_previous_control (true);
@@ -238,7 +238,7 @@
 					rom_flow.ResumeLayout (false);
 				}
 			}
-			if (e.KeyCode == Keys.Down) {
+			if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Right) {
 				if (OSInfo.OSIsUnix) {
 					rom_flow.SuspendLayout ();
 					var ctl = game_ctrl_get_next_control (true);
@@ -335,7 +335,7 @@
                 // maximize EmuXPortal
                 this.WindowState = FormWindowState.Maximized;
             }
-            if (e.KeyCode == Keys.Back)
+			if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape)
             {
                 rom_flow.Visible = false;
                 platform_flow.Visible = true;
@@ -385,7 +385,7 @@
             PlatformControl c = sender as PlatformControl;
             int changeAmount = 0;
             int currentPosition = 0;
-			if (e.KeyCode == Keys.Up) {
+			if (e.KeyCode == Keys.Up || e.KeyCode == Keys.Left) {
 				if (OSInfo.OSIsUnix) {
 					platform_flow.SuspendLayout ();
 					var ctl = platform_ctrl_get_previous_control (true);
@@ -393,7 +393,7 @@
 					platform_flow.ResumeLayout (false);
 				}
 			}
-			if (e.KeyCode == Keys.Down) {
+			if (e.KeyCode == Keys.Down || e.KeyCode == Keys.Right) {
 				if (OSInfo.OSIsUnix) {
 					platform_flow.SuspendLayout ();
 					var ctl = platform_ctrl_get_next_control (true);
@@ -470,7 +470,7 @@
                 rom_flow.Visible = true;
                 rom_flow.BringToFront();
             }
-            if (e.KeyCode == Keys.Back)
+			if (e.KeyCode == Keys.Back || e.KeyCode == Keys.Escape)
             {
                 this.Close();
             }
@@ -785,7 +785,12 @@
                 game_ctrl.Font = GetFormFont();
                 game_ctrl.Dock = DockStyle.Top;
                 game_ctrl.Width = this.Width - 10;
-                game_ctrl.GameName = "You haven't favorited any games, select a game and then press CTRL+F to favorite it";
+				IEmuConfig config = CurrentPlatformControl.Tag as IEmuConfig;
+				if (config.PlatformNameLong == "Favorites") {
+					game_ctrl.GameName = "You haven't favorited any games, select a game and then press CTRL+F to favorite it";
+				} else {
+					game_ctrl.GameName = string.Format ("No {0} games were found", config.PlatformNameShort);
+				}                
                 rom_flow.Controls.Add(game_ctrl);
             }
             rom_flow.Controls[0].Select();

 

  ViewVC Help
Powered by ViewVC 1.1.22