(Solved)(Android) How to know when my game gets in background?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
(Solved)(Android) How to know when my game gets in background?
I have a little problem in my game: when the game gets put in background the music keeps playing. I already have a togglePause() function that pauses the game, but I can't find any event or something that tells me when the app is in background even though I've been googling for an hour or so. Does anybody have a solution?
Last edited by s0ft on Thu Feb 04, 2016 3:07 pm, edited 1 time in total.
Re: (Android) How to know when my game gets in background?
You should use [wiki]love.focus[/wiki] for that. The current version currently has some issues about android and background though, they'll be fixed in 0.10.1.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
Re: (Android) How to know when my game gets in background?
Alright! Thanks for the fast response! 

Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot], interested_party and 3 guests