From e72b9a3c26fd6ef499b88aba9f71e1fd59488770 Mon Sep 17 00:00:00 2001 From: "andres.delikat" Date: Wed, 16 Feb 2011 03:43:11 +0000 Subject: [PATCH] Input display for SMS games --- BizHawk.MultiClient/RenderPanel.cs | 65 +++++++++++++++++++++++++++++- 1 file changed, 64 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/RenderPanel.cs b/BizHawk.MultiClient/RenderPanel.cs index d923da6bb5..e8a1a8e96d 100644 --- a/BizHawk.MultiClient/RenderPanel.cs +++ b/BizHawk.MultiClient/RenderPanel.cs @@ -254,7 +254,70 @@ namespace BizHawk.MultiClient if (Global.Config.DisplayInput) { - + string input = ""; + if (Global.Emulator.type == "SMS") + { + if (Global.Emulator.Controller.IsPressed("P1 Up")) + input += "U"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P1 Down")) + input += "D"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P1 Left")) + input += "L"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P1 Right")) + input += "R"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P1 B1")) + input += "1"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P1 B2")) + input += "2"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 Up")) + input += "U"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 Down")) + input += "D"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 Left")) + input += "L"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 Right")) + input += "R"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 B1")) + input += "1"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("P2 B2")) + input += "2"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("Pause")) + input += "S"; + else + input += " "; + if (Global.Emulator.Controller.IsPressed("Reset")) + input += "R"; + else + input += " "; + + + } + + MessageFont.DrawString(null, input, 1, 16, new Color4(Color.White)); } }