KeyPushed
Last updated
Was this helpful?
The KeyPushed method returns whether the argument key was pressed this frame. This value will only return true for one frame when the key is first pushed.
The following code will test to see if the Enter key has been pushed:
if(InputManager.Keyboard.KeyPushed(Keys.Space))
{
// do something...
}Last updated
Was this helpful?
Was this helpful?