mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixed love.keyboard.setKeyRepeat, fixed issues with Body:getWhatever, and made the save directory settable.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user