SFML community forums

Bindings - other languages => DotNet => Topic started by: DaysShadow on July 08, 2011, 08:00:30 pm

Title: SFML 2 EnableKeyRepeat shows no effect
Post by: DaysShadow on July 08, 2011, 08:00:30 pm
I dont know if it is an issue or a fault by myself but using Keyboard.EnableKeyRepeat( false ) once and asking Keys via Keyboard.IsKeyPressed( Keyboard.Key.TheKey ) in the main loop does not work like i expected it, it's just like with key repeat set to true.

With KeyRepeat set to false a IsKeyPressed( Key ) call should only return true one time if the key wasn't  released after that, shouldn't it?

I hope anyone can help here.

Thanks.
Title: SFML 2 EnableKeyRepeat shows no effect
Post by: Laurent on July 08, 2011, 09:06:44 pm
Key repeat is only for KeyPressed events (that's why it's in Window, not Keyboard).
Title: SFML 2 EnableKeyRepeat shows no effect
Post by: DaysShadow on July 08, 2011, 09:12:10 pm
Ah ok, so i have to write something myself, thank you.
Fast as always :)