SFML community forums

Help => Window => Topic started by: Heryon on April 08, 2017, 01:16:12 pm

Title: Key Repeat
Post by: Heryon on April 08, 2017, 01:16:12 pm
Hi, I am checking when a key is pressed to set a bool to true, and when it is released to set it to false, and when this bool is tru, my character moves. But with key repeat set to false, it doesn't work, and with key repeat set to true, the character starts to move, stops a little time, and then moves again.
Is there anyway to have something smooth?
Title: Re: Key Repeat
Post by: eXpl0it3r on April 08, 2017, 01:27:29 pm
By writing the code that way properly? ;)

If you want help with that, you'll have to post some code.