Page 1 of 1

phone-api: main keys: back,menu,home,search

Posted: Fri Nov 18, 2011 2:23 am
by ghoulsblade
you can now get notifications for the back,menu,home,search keys,

user-defined callback :
function love.phone.main_key_event (sEventName) .... end
-- with sEventName being one of back,menu,search,home,leavehint

all except home can also be blocked to stop their usual actions :
love.phone.setBlockMainKey_Back(bBlocked)
love.phone.setBlockMainKey_Menu(bBlocked)
love.phone.setBlockMainKey_Search(bBlocked)

example :
http://ghoulsblade.schattenkind.net/lov ... rtest.love
press "1" to block them
press "2" to re-enable them

bug: back notification doesn't work currently

Re: phone-api: main keys: back,menu,home,search

Posted: Fri Apr 06, 2012 9:38 pm
by jimm1909
ghoulsblade wrote:you can now get notifications for the back,menu,home,search keys,

user-defined callback :
function love.phone.main_key_event (sEventName) .... end
-- with sEventName being one of back,menu,search,home,leavehint

all except home can also be blocked to stop their usual actions :
love.phone.setBlockMainKey_Back(bBlocked)
love.phone.setBlockMainKey_Menu(bBlocked)
love.phone.setBlockMainKey_Search(bBlocked)

example :
http://ghoulsblade.schattenkind.net/lov ... rtest.love
press "1" to block them
press "2" to re-enable them

bug: back notification doesn't work currently
Is back notification working yet? Let me know.

Thanks in advance,

-Jim

Re: phone-api: main keys: back,menu,home,search

Posted: Sun Jun 03, 2012 7:59 pm
by steveosiris
Hi Jim, I just checked, and it looks like back notification is now working. :)
jimm1909 wrote:
ghoulsblade wrote:you can now get notifications for the back,menu,home,search keys,

user-defined callback :
function love.phone.main_key_event (sEventName) .... end
-- with sEventName being one of back,menu,search,home,leavehint

all except home can also be blocked to stop their usual actions :
love.phone.setBlockMainKey_Back(bBlocked)
love.phone.setBlockMainKey_Menu(bBlocked)
love.phone.setBlockMainKey_Search(bBlocked)

example :
http://ghoulsblade.schattenkind.net/lov ... rtest.love
press "1" to block them
press "2" to re-enable them

bug: back notification doesn't work currently
Is back notification working yet? Let me know.

Thanks in advance,

-Jim

Re: phone-api: main keys: back,menu,home,search

Posted: Fri Jun 22, 2012 9:36 am
by roversburn
jimm1909 wrote: Is back notification working yet? Let me know.

Thanks in advance,

-Jim
Yes, it works all right.

Re: phone-api: main keys: back,menu,home,search

Posted: Wed Jan 16, 2013 7:20 am
by alprome
I tried all the steps mentioned above to get notifications for the back, menu, home, search keys but it didn’t work for me the first time but when I tried it after some time all the notification worked perfectly. Thank you for the help!

Re: phone-api: main keys: back,menu,home,search

Posted: Sat Jul 06, 2013 6:17 am
by JDavis820
alprome wrote:I tried all the steps mentioned above to get notifications for the back, menu, home, search keys but it didn’t work for me the first time but when I tried it after some time all the notification worked perfectly. Thank you for the help!

I encountered same here, and still not getting it...aww! :brows: