SFML community forums
Bindings - other languages => DotNet => Topic started by: Xyro on January 06, 2011, 05:16:46 pm
-
How can I go an see if a key is being pressed, I only found this in a sample :
void OnKeyPressed(object sender, KeyEventArgs e)
{
RenderWindow window = (RenderWindow)sender;
if (e.Code == KeyCode.Escape)
window.Close();
}
but this only works for one key at a time and I want to get multiple keys.
-
Don't know if DotNet got that class, but you should have a look at the Input class.
-
window.Input.IsKeyPressed(...)