1 decade ago by hallsofvallhalla
I am having issues with getting Impact to recognize new key hits when one key is already held. For instance
if I press and hold up to make player move up then while holding up press left the key.pressed still fires the up key. It thinks I am pressing the first button to get pressed instead of registering that I am pressing left while holding up.
Anyone else notice this issue?
if( ig.input.state('left') )
{
//move player left
}
if( ig.input.state('up') )
{
//move player up
}
if( ig.input.pressed('up') )
{
alert("you pressed up");
}
if( ig.input.pressed('left') )
{
alert("you pressed left");
}
if I press and hold up to make player move up then while holding up press left the key.pressed still fires the up key. It thinks I am pressing the first button to get pressed instead of registering that I am pressing left while holding up.
Anyone else notice this issue?
