mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Fix automatically pausing and resuming audio on android (resolves #1237)
--HG-- branch : minor
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
|
||||
// LOVE
|
||||
#include "event/Event.h"
|
||||
#include "audio/Source.h"
|
||||
|
||||
// SDL
|
||||
#include <SDL_events.h>
|
||||
@@ -70,13 +71,17 @@ private:
|
||||
|
||||
void exceptionIfInRenderPass();
|
||||
|
||||
Message *convert(const SDL_Event &e) const;
|
||||
Message *convert(const SDL_Event &e);
|
||||
Message *convertJoystickEvent(const SDL_Event &e) const;
|
||||
Message *convertWindowEvent(const SDL_Event &e) const;
|
||||
Message *convertWindowEvent(const SDL_Event &e);
|
||||
|
||||
static std::map<SDL_Keycode, love::keyboard::Keyboard::Key> createKeyMap();
|
||||
static std::map<SDL_Keycode, love::keyboard::Keyboard::Key> keys;
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
std::vector<love::audio::Source*> pausedSources;
|
||||
#endif
|
||||
|
||||
}; // Event
|
||||
|
||||
} // sdl
|
||||
|
||||
Reference in New Issue
Block a user