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

Author Topic: Cast keyboard keys problem  (Read 1524 times)

0 Members and 1 Guest are viewing this topic.

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Cast keyboard keys problem
« on: December 26, 2011, 03:05:18 pm »
How can I get keyboard keys so quickly. I mean when I want to move my character using the left arrow key for example, when I press left, it just make a left move and it'll stop, next it will continue. The stop time is around half a second. I don't know how should I express it but I'm sure you faced this.

Thanks.
This is a land of broken hearts, where bullets shatter dreams (50 Cent)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Cast keyboard keys problem
« Reply #1 on: December 26, 2011, 04:04:47 pm »
Use real-time inputs, not events (see tutorial and doc).
Laurent Gomila - SFML developer

MahanGM

  • Newbie
  • *
  • Posts: 18
    • Yahoo Instant Messenger - mahan_pro2000
    • View Profile
    • http://www.df-gamez.com
Cast keyboard keys problem
« Reply #2 on: December 29, 2011, 03:21:03 pm »
Thanks for help.
This is a land of broken hearts, where bullets shatter dreams (50 Cent)

 

anything