Input display for SMS games

This commit is contained in:
andres.delikat 2011-02-16 03:43:11 +00:00
parent 48bb648ff9
commit e72b9a3c26
1 changed files with 64 additions and 1 deletions

View File

@ -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));
}
}