keyboard repetition interval

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
segoe
Prole
Posts: 2
Joined: Sun Sep 13, 2009 1:36 am

keyboard repetition interval

Post 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
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: keyboard repetition interval

Post by TechnoCat »

I believe this was added into the next version, 0.6.0.
http://love2d.org/wiki/index.php?title= ... e.keyboard
segoe
Prole
Posts: 2
Joined: Sun Sep 13, 2009 1:36 am

Re: keyboard repetition interval

Post 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.
User avatar
osgeld
Party member
Posts: 303
Joined: Sun Nov 23, 2008 10:13 pm

Re: keyboard repetition interval

Post 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
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 7 guests