Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Key Repeat  (Read 1125 times)

0 Members and 1 Guest are viewing this topic.

Heryon

  • Newbie
  • *
  • Posts: 9
    • View Profile
Key Repeat
« 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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10226
    • View Profile
    • development blog
    • Email
Re: Key Repeat
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/