Is there any way to set key repetition speed when a key is pressed so i can tweak controls exactly?
Something like SDL: SDL_EnableKeyRepeat(delay, interval)
Edit:
Done it with keypressed, keyreleased and timing based on game.ticks, but i suposse there should be a much cleaner method
keyboard repetition interval
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: keyboard repetition interval
I believe this was added into the next version, 0.6.0.
http://love2d.org/wiki/index.php?title= ... e.keyboard
http://love2d.org/wiki/index.php?title= ... e.keyboard
Re: keyboard repetition interval
Thanks for the reply, i probably won't be able to use 0.6.0 though unless it supports .s3m and .mod music formats in OpenAL as SDL_Mixer does on 0.5.0.
Re: keyboard repetition interval
supports is a relitive thing. 0.5 has no control of the music volume so yea while it DOES play, I usually end up having to ogg it just so i can mix volume levels, cause with sfx and music both going at full blast its just noise
Who is online
Users browsing this forum: Google [Bot] and 7 guests