Page 1 of 1

Issues with key repetition

Posted: Sun Mar 15, 2015 1:15 am
by AtomicPuncture
Inside of the function love.load() I have a line that is clearly meant to disable key repetition.
love.keyboard.setKeyRepeat(false)
But, sadly, this is not working.
When I hold up or down, the cursor for the main menu zips across the screen.
What am I doing wrong? Is there some different method that isn't on the Wiki that disables key repetition?
I mean, I used it EXACTLY as the wiki says, but the key input still repeats(Very quickly, might I add)
Can anyone help? :o:

Re: Issues with key repetition

Posted: Sun Mar 15, 2015 1:26 am
by slime
If you're using a third-party library for GUI functionality (e.g. loveframes), it might potentially call setKeyRepeat in its own code.

If not, make sure your code is using [wiki]love.keypressed[/wiki] for actions that should only happen when the key is first pressed, and [wiki]love.keyboard.isDown[/wiki] for things that should happen continuously while the key is being held down.