Using back button on device

A project to port LÖVE to Android handhelds
Locked
User avatar
Kasperelo
Party member
Posts: 343
Joined: Fri Apr 13, 2012 1:47 pm
Location: The Milky Way

Using back button on device

Post by Kasperelo » Fri Jan 01, 2016 7:57 pm

How do I make specific things happen when the back button at the bottom of the device is pressed? Currently it does nothing.

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

Re: Using back button on device

Post by Nixola » Fri Jan 01, 2016 7:59 pm

I think you can catch it with love.keypressed, it should be "escape" if I recall correctly
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: Using back button on device

Post by Kasperelo » Mon Jan 04, 2016 4:23 pm

Yeah, it is, apparently it was on the love-android-sdl wiki :P Sorry

Locked

Who is online

Users browsing this forum: No registered users and 4 guests