Added gui and fixes for Guitar hero controller

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@184 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-06-15 13:15:24 +00:00
parent 1aed557012
commit 3fcd80e3c0
12 changed files with 731 additions and 24 deletions

View File

@@ -55,7 +55,7 @@ public class ButtonsEventPanel extends javax.swing.JPanel implements
private Color pressedColor = Color.RED;
private Color heldColor = Color.ORANGE;
private Color releasedColor = Color.YELLOW;
private Shape shape;
private Shape shape = new java.awt.geom.Ellipse2D.Double(0, 0, 13, 13);
/**
* Default constructor. Red : button just pressed. Orange : button held.
@@ -66,7 +66,6 @@ public class ButtonsEventPanel extends javax.swing.JPanel implements
java.net.URL url = ButtonsEventPanel.class
.getResource("/img/wiimote.png");
wiimoteImage = toolkit.createImage(url);
shape = new java.awt.geom.Ellipse2D.Double(0, 0, 13, 13);
initComponents();
}
@@ -89,8 +88,7 @@ public class ButtonsEventPanel extends javax.swing.JPanel implements
releasedColor = relColor;
shape = sh;
Toolkit toolkit = java.awt.Toolkit.getDefaultToolkit();
wiimoteImage = toolkit.createImage("img\\wiimote.png");
shape = new java.awt.geom.Ellipse2D.Double(0, 0, 13, 13);
wiimoteImage = toolkit.createImage("img\\wiimote.png");
initComponents();
}
@@ -295,8 +293,7 @@ public class ButtonsEventPanel extends javax.swing.JPanel implements
}
public void onDisconnectionEvent(DisconnectionEvent arg0) {
buttons = null;
repaint();
clearView();
}
public void onNunchukInsertedEvent(NunchukInsertedEvent e) {