Greetings. There is a circle (picture), inside the circle there is a smaller circle. It is necessary that when you press (and move your finger across the screen), the inner circle moves towards the click, but does not extend beyond the larger circle. Type tochpad in libgdx, but there only responds to click inside the circle.

    1 answer 1

    Try to override the hit method of the Touchpad class as follows:

     @Override public Actor hit (float x, float y, boolean touchable) { return this; } 
    • BINGO! A little poshamanil and happened. Thank! - Rusl Mag