KeyDown
Introduction
Code Example
// assumes SpriteInstance is a valid Sprite, and that it is not attached to anything:
if(FlatRedBall.Input.Keyboard.KeyDown(Keys.Right))
{
// This will move it 10 units per second
Sprite.X += TimeManager.SecondDifference * 10;
}Last updated
Was this helpful?