Numpad 2,4,6,8 != Arrow keys!
This commit is contained in:
parent
f5014946db
commit
38422fda10
|
@ -37,6 +37,14 @@ namespace BizHawk.MultiClient
|
||||||
if (control.StartsWith("J2 ")) return GetGamePad(1, control.Substring(3));
|
if (control.StartsWith("J2 ")) return GetGamePad(1, control.Substring(3));
|
||||||
if (control.StartsWith("J3 ")) return GetGamePad(2, control.Substring(3));
|
if (control.StartsWith("J3 ")) return GetGamePad(2, control.Substring(3));
|
||||||
if (control.StartsWith("J4 ")) return GetGamePad(3, control.Substring(3));
|
if (control.StartsWith("J4 ")) return GetGamePad(3, control.Substring(3));
|
||||||
|
//Key z = Key.n
|
||||||
|
Key z = Key.NumberPad4;
|
||||||
|
Key y = Key.LeftArrow;
|
||||||
|
if (z == Key.LeftArrow || y == Key.LeftArrow)
|
||||||
|
{
|
||||||
|
int x = 0;
|
||||||
|
x++;
|
||||||
|
}
|
||||||
Key k = (Key) Enum.Parse(typeof(Key), control, true);
|
Key k = (Key) Enum.Parse(typeof(Key), control, true);
|
||||||
return KeyInput.IsPressed(k);
|
return KeyInput.IsPressed(k);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,14 +53,6 @@ namespace BizHawk.MultiClient
|
||||||
return false;
|
return false;
|
||||||
if (state.IsPressed(key))
|
if (state.IsPressed(key))
|
||||||
return true;
|
return true;
|
||||||
if (key == Key.UpArrow && state.IsPressed(Key.NumberPad8))
|
|
||||||
return true;
|
|
||||||
if (key == Key.DownArrow && state.IsPressed(Key.NumberPad2))
|
|
||||||
return true;
|
|
||||||
if (key == Key.LeftArrow && state.IsPressed(Key.NumberPad4))
|
|
||||||
return true;
|
|
||||||
if (key == Key.RightArrow && state.IsPressed(Key.NumberPad6))
|
|
||||||
return true;
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue