Add pointer processing
This commit is contained in:
parent
ab1635389e
commit
5cff33f823
@ -51,14 +51,4 @@ public abstract class InputProcessor implements InputListener {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onPointerPressed(int x, int y) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onPointerReleased(int x, int y) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public void onPointerDragged(int x, int y) {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -81,4 +81,16 @@ public class MainApp extends InputProcessor implements ApplicationListener {
|
|||||||
}
|
}
|
||||||
enemiesLeft = counter;
|
enemiesLeft = counter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void onPointerPressed(int x, int y) {
|
||||||
|
aim.set(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onPointerReleased(int x, int y) {
|
||||||
|
isFirePressed();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onPointerDragged(int x, int y) {
|
||||||
|
aim.set(x, y);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user