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?
Issues with key repetition
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- slime
- Solid Snayke
- Posts: 3170
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Issues with key repetition
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.
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.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot], pgimeno and 8 guests