Added love.lowmemory event callback function, called when the app is close to running out of memory on iOS and Android.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-02-26 00:45:48 -04:00
parent e8ce59038f
commit 95f87ed886
3 changed files with 19 additions and 4 deletions
+3
View File
@@ -362,6 +362,9 @@ Message *Event::convert(const SDL_Event &e) const
case SDL_APP_TERMINATING:
msg = new Message("quit");
break;
case SDL_APP_LOWMEMORY:
msg = new Message("lowmemory");
break;
default:
break;
}