Closed Kimaker closed 10 years ago
Thanks :).
The mistake that you're probably making is that touchUpImpl() and touchDownImpl() have a Touch parameter. They should be defined like this:
@Override
public void touchUpImpl( Touch touch){}
@Override
public void touchDownImpl( Touch touch){}
Than you very much, it works! I have a last question, it is possible to have a getTouchFromeZone() in a touchImpl()?
I'm not really sure I understand your question. Maybe the function you're looking for is Zone.getTouches()
? It returns all the touches that are currently assigned to the zone. You can use it like this:
@Override
public void touchImpl(){
Touch[] touches = this.getTouches();
}
Yes! It was exactly what I was looking for. Again thank you very much, and keep going just like that it is very useful :)
You're welcome :). I'll mark this issue as closed then.
Hello everybody!
I am a french user of your library, I congrate and thank you for that amazing work. I permit to write you to describe a problem that I have. I use a "class extends zone" in my work, it is a sort of a class ball where all balls are zones. I used touchImpl() and drawImpl() in this class, what that work well, but not touchUpImpl() and touchDownImpl(). I was wondering if it was normal? Thank you in advance