Fixed love.keyboard.setKeyRepeat, fixed issues with Body:getWhatever, and made the save directory settable.

This commit is contained in:
rude
2009-10-29 22:34:54 +01:00
parent 0e671c34d5
commit 435fc43f68
9 changed files with 164 additions and 66 deletions
+3 -4
View File
@@ -46,11 +46,10 @@ namespace sdl
void Keyboard::setKeyRepeat(int delay, int interval) const
{
if(delay == DEFAULT)
delay = SDL_DEFAULT_REPEAT_DELAY;
delay = (delay == DEFAULT) ? SDL_DEFAULT_REPEAT_DELAY : delay;
interval = (interval == DEFAULT) ? SDL_DEFAULT_REPEAT_INTERVAL : interval;
if(interval == DEFAULT)
interval = SDL_DEFAULT_REPEAT_INTERVAL;
SDL_EnableKeyRepeat(delay, interval);
}
int Keyboard::getKeyRepeatDelay() const