new and improved version - w00t

This commit is contained in:
Brian Matzon 2003-01-23 21:11:16 +00:00
parent 5d71ae31d3
commit e781a7c83d
2 changed files with 133 additions and 33 deletions

View file

@ -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: ");