Not working press spacebar, if press and hold buttons arrow!
- Press and hold the button right arrow + up arrow, and press the spacebar. Console to write a “Space”
- Press and hold the button left arrow + up arrow, and press the spacebar. Console NOT write a “Space”
- Press and hold the button left arrow + bottom arrow, and press the spacebar. Console NOT write a “Space”
- Press and hold the button right arrow + bottom arrow, and press the spacebar. Console NOT write a “Space”
Unity 5.5.0p4
script c#
…
void Update () {
if (Input.GetKeyDown(KeyCode.Space))
{
print(“Space”);
}
}