mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
new and improved version - w00t
This commit is contained in:
parent
5d71ae31d3
commit
e781a7c83d
2 changed files with 133 additions and 33 deletions
|
|
@ -91,19 +91,32 @@ public class ControllerTest extends Panel {
|
|||
y += 20;
|
||||
g.drawString("-----------------------------------------------", x, y);
|
||||
y += 20;
|
||||
g.drawString("x : " + Controller.x, x, y);
|
||||
y += 20;
|
||||
g.drawString("y : " + Controller.y, x, y);
|
||||
y += 20;
|
||||
if (Controller.hasZAxis) {
|
||||
|
||||
if(Controller.hasXAxis) {
|
||||
g.drawString("x : " + Controller.x, x, y);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
if(Controller.hasYAxis) {
|
||||
g.drawString("y : " + Controller.y, x, y);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
if (Controller.hasZAxis) {
|
||||
g.drawString("z : " + Controller.z, x, y);
|
||||
y += 20;
|
||||
}
|
||||
if (Controller.hasPOV) {
|
||||
|
||||
if (Controller.hasPOV) {
|
||||
g.drawString("pov: " + Controller.pov, x, y);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
if (Controller.hasSlider) {
|
||||
g.drawString("slder: " + Controller.slider, x, y);
|
||||
y += 20;
|
||||
}
|
||||
|
||||
//paint buttons
|
||||
g.drawString("btn: ", x, y);
|
||||
x += g.getFontMetrics().stringWidth("btn: ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue