"Home" button does not work?

Discuss any ports of LÖVE to different platforms.
Post Reply
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

"Home" button does not work?

Post by Kasperelo »

I check in love.keyreleased() for key == "home" to stop some game stuff, but it doesn't seem to register? The "escape" (back button) works though. I'm talking about the physical buttons, sometimes part of the GUI.
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: "Home" button does not work?

Post by Nixola »

I think some key / key combinations are "hijacked" by Android and not passed to SDL2, so if I'm right there's not much that can be done about it.
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: "Home" button does not work?

Post by Kasperelo »

hm... do you know any other way to stop the background music when the user exits?
User avatar
Nixola
Inner party member
Posts: 1949
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: "Home" button does not work?

Post by Nixola »

Is [wiki]love.focus[/wiki] called?
lf = love.filesystem
ls = love.sound
la = love.audio
lp = love.physics
lt = love.thread
li = love.image
lg = love.graphics
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: "Home" button does not work?

Post by Kasperelo »

Trying it now
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Re: "Home" button does not work?

Post by Kasperelo »

Yes! It works! Thanks :D
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests