love.touchreleased example ?
love.touchreleased example ?
Still a beginner.. kinda confused on how to use this.. can anyone give me an example ?
-
Re: love.touchreleased example ?
It's a callback like load, update and draw.
Code: Select all
function love.touchreleased( id, x, y, dx, dy, pressure )
-- ToDo handle end of touch input
end
- zorg
- Party member
- Posts: 3470
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: love.touchreleased example ?
You define it, usually along with the above, and love.touchpressed and love.touchmoved, in the "file scope", meaning outside of any other function.
And you write in things you want to do with the information they return when the user touches a screen, moves their finger(s) across while touching, and finally when releasing their finger(s).
And you write in things you want to do with the information they return when the user touches a screen, moves their finger(s) across while touching, and finally when releasing their finger(s).
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Who is online
Users browsing this forum: No registered users and 5 guests