fixing for classic controller

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@189 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-07-14 12:51:59 +00:00
parent 290a357df6
commit 5b2e5b41c8
5 changed files with 604 additions and 631 deletions

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

View File

@@ -161,15 +161,15 @@ public class ClassicControllerGuiTest extends javax.swing.JFrame implements Wiim
// nothing to do
}
// public static void main(String[] args) {
// Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
// ClassicControllerGuiTest gui = null;
// if (wiimotes.length > 0) {
// gui = new ClassicControllerGuiTest(wiimotes[0]);
// }
// gui.setDefaultCloseOperation(WiiuseJGuiTest.EXIT_ON_CLOSE);
// gui.setVisible(true);
// }
public static void main(String[] args) {
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
ClassicControllerGuiTest gui = null;
if (wiimotes.length > 0) {
gui = new ClassicControllerGuiTest(wiimotes[0]);
}
gui.setDefaultCloseOperation(WiiuseJGuiTest.EXIT_ON_CLOSE);
gui.setVisible(true);
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JPanel classicControllerPanel;
private javax.swing.JProgressBar leftShoulderBar;

File diff suppressed because it is too large Load Diff

View File

@@ -165,16 +165,16 @@ public class ClassicControllerButtonsEventPanel extends javax.swing.JPanel imple
if (buttons.isButtonBJustReleased()) {
drawFunction(g2, releasedColor, 269, 98, shapeButton);
}
/* button Down */
if (buttons.isButtonDownJustPressed()) {
drawFunction(g2, pressedColor, 53, 353, shapeButton);
drawFunction(g2, pressedColor, 60, 97, shapeButton);
}
if (buttons.isButtonDownHeld()) {
drawFunction(g2, heldColor, 53, 353, shapeButton);
drawFunction(g2, heldColor, 60, 97, shapeButton);
}
if (buttons.isButtonDownJustReleased()) {
drawFunction(g2, releasedColor, 53, 353, shapeButton);
drawFunction(g2, releasedColor, 60, 97, shapeButton);
}
/* button FullLeft */
@@ -256,13 +256,13 @@ public class ClassicControllerButtonsEventPanel extends javax.swing.JPanel imple
/* button Up */
if (buttons.isButtonUpJustPressed()) {
drawFunction(g2, pressedColor, 59, 50, shapeButton);
drawFunction(g2, pressedColor, 60, 50, shapeButton);
}
if (buttons.isButtonUpHeld()) {
drawFunction(g2, heldColor, 59, 50, shapeButton);
drawFunction(g2, heldColor, 60, 50, shapeButton);
}
if (buttons.isButtonUpJustReleased()) {
drawFunction(g2, releasedColor, 59, 50, shapeButton);
drawFunction(g2, releasedColor, 60, 50, shapeButton);
}
/* button X */