Fix so that Number pad keys can be mapped to hotkeys & controllers without crashing
This commit is contained in:
parent
fb4abe9331
commit
cb6e6d2d13
|
@ -85,14 +85,16 @@ namespace BizHawk.MultiClient
|
||||||
{
|
{
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
string str = "";
|
string str = "";
|
||||||
if((modifiers & Keys.Shift)!=0)
|
if((modifiers & Keys.Shift)!=0)
|
||||||
str += "LeftShift + ";
|
str += "LeftShift + ";
|
||||||
if ((modifiers & Keys.Control) != 0)
|
if ((modifiers & Keys.Control) != 0)
|
||||||
str += "LeftControl + ";
|
str += "LeftControl + ";
|
||||||
if ((modifiers & Keys.Alt) != 0)
|
if ((modifiers & Keys.Alt) != 0)
|
||||||
str += "LeftAlt + ";
|
str += "LeftAlt + ";
|
||||||
str += key.ToString();
|
str += key.ToString();
|
||||||
|
if (str.Substring(0, 6) == "NumPad")
|
||||||
|
str = str.Insert(3, "ber");
|
||||||
if (str.Length > 3)
|
if (str.Length > 3)
|
||||||
{
|
{
|
||||||
if (str.Substring(0, 3) == "Oem")
|
if (str.Substring(0, 3) == "Oem")
|
||||||
|
|
Loading…
Reference in New Issue