"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 » Tue Jan 05, 2016 7:13 pm

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: 1860
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: "Home" button does not work?

Post by Nixola » Tue Jan 05, 2016 7:20 pm

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 » Tue Jan 05, 2016 7:23 pm

hm... do you know any other way to stop the background music when the user exits?

User avatar
Nixola
Inner party member
Posts: 1860
Joined: Tue Dec 06, 2011 7:11 pm
Location: Italy

Re: "Home" button does not work?

Post by Nixola » Tue Jan 05, 2016 7:25 pm

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 » Tue Jan 05, 2016 7:30 pm

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 » Tue Jan 05, 2016 7:31 pm

Yes! It works! Thanks :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests