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

Author Topic: Keyboard Autorepeat  (Read 2774 times)

0 Members and 2 Guests are viewing this topic.

tJener

  • Newbie
  • *
  • Posts: 2
    • View Profile
Keyboard Autorepeat
« on: May 01, 2009, 09:38:19 am »
Is there a way to tell SFML to disable keyboard autorepeat so that when processing events it only triggers on keydown and keyup?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Keyboard Autorepeat
« Reply #1 on: May 01, 2009, 11:13:24 am »
Code: [Select]
window.EnableKeyRepeat(false);
Laurent Gomila - SFML developer

tJener

  • Newbie
  • *
  • Posts: 2
    • View Profile
Keyboard Autorepeat
« Reply #2 on: May 01, 2009, 10:16:11 pm »
Ah, thank you, I was searching for it with the wrong name, since the xlib call is XAutoRepeatOff.

 

anything