Jump to content

Control keyboard update rates


herksaw
 Share

Recommended Posts

You can't really, the browser will fire the event on keypress regardless and there's no way (that I know of) to modify how often this happens, beyond changing your keyboard repeat settings in Windows /  OS X. You can add in an artificial delay so you don't respond to the key press, i.e. you could respond to every 10th press for example (or repeat of a press) but you'd need to code that into your game loop and use an internal timer to keep track. Even with it, the events will still fire from the browser though.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...