Fix so that Number pad keys can be mapped to hotkeys & controllers without crashing

This commit is contained in:
andres.delikat 2011-04-23 20:59:07 +00:00
parent fb4abe9331
commit cb6e6d2d13
1 changed files with 4 additions and 2 deletions

View File

@ -85,14 +85,16 @@ namespace BizHawk.MultiClient
{
public override string ToString()
{
string str = "";
if((modifiers & Keys.Shift)!=0)
string str = "";
if((modifiers & Keys.Shift)!=0)
str += "LeftShift + ";
if ((modifiers & Keys.Control) != 0)
str += "LeftControl + ";
if ((modifiers & Keys.Alt) != 0)
str += "LeftAlt + ";
str += key.ToString();
if (str.Substring(0, 6) == "NumPad")
str = str.Insert(3, "ber");
if (str.Length > 3)
{
if (str.Substring(0, 3) == "Oem")