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

Author Topic: Is there a way to specify Keyboard Repeat Delay?  (Read 2097 times)

0 Members and 2 Guests are viewing this topic.

ichineko

  • Newbie
  • *
  • Posts: 44
    • View Profile
Is there a way to specify Keyboard Repeat Delay?
« on: November 25, 2012, 09:15:56 am »
Nothing really jumped out at me, but I thought I'd make sure before I start implementing my own solution.

Or, somewhat related, does the event system allow me to generate events?  generate a key press that didn't actually happen, for example.  I didn't see anything that seemed promising, but I may as well make sure.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Is there a way to specify Keyboard Repeat Delay?
« Reply #1 on: November 25, 2012, 09:24:27 am »
No and no. But you can use your own event abstraction in which you can push own events. This may also be useful to have callbacks. I implemented such an action system in Thor (tutorial, doc).
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

ichineko

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: Is there a way to specify Keyboard Repeat Delay?
« Reply #2 on: November 25, 2012, 10:15:06 am »
Alright, thanks.

I'm just working on a crappy little tetris clone, so I think I'll go the ghetto route and just implement a few flags, lol.  Thanks for the suggestion of the eventing system on top of SFML though, I may look into that once I start in on bigger things.

 

anything