Hello.Recently a friend of mine has broken his phone screen.Most of it is ok but he can’t use the bottom right part of it.I thought about making an app that allows the user to tap an area of the screen even when that part of the screen doesn’t actually respond to the touch.I have made it so that there is a green circle which is always 100 pixels to the right and 100 pixels down of the users touch.What I’d like to know is how can i make it,that if the user taps somewhere on the screen,that the location of the tap is changed to that of the green circle or even create a new tap at that location.Here is my code for now:
EDIT : Also is there a way to trigger the home button using code?
--create circle local circle = display.newCircle( 50, 50, 10 ) circle:setFillColor( 0, 1, 0 ) --move the circle local function moveCircle( event ) circle.x = event.x + 100; circle.y = event.y + 100; end --tap on where the circle is --this is where i'd put the code for changing the tap location --or making a new tap if possible local function setTap( event ) end --event listeners Runtime:addEventListener( "touch", moveCircle ) Runtime:addEventListener( "tap", setTap )