Page 1 of 1

keyboard repetition interval

Posted: Sun Sep 13, 2009 1:39 am
by segoe
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

Re: keyboard repetition interval

Posted: Sun Sep 13, 2009 2:02 am
by TechnoCat
I believe this was added into the next version, 0.6.0.
http://love2d.org/wiki/index.php?title= ... e.keyboard

Re: keyboard repetition interval

Posted: Sun Sep 13, 2009 2:18 am
by segoe
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

Posted: Sun Sep 13, 2009 2:41 am
by osgeld
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