fixing for classic controller
git-svn-id: http://wiiusej.googlecode.com/svn/trunk@189 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
Binary file not shown.
BIN
WiiUseJ/src/img/classiccontroller.png
Normal file
BIN
WiiUseJ/src/img/classiccontroller.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
@@ -161,15 +161,15 @@ public class ClassicControllerGuiTest extends javax.swing.JFrame implements Wiim
|
|||||||
// nothing to do
|
// nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
// public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
// Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
|
Wiimote[] wiimotes = WiiUseApiManager.getWiimotes(1, true);
|
||||||
// ClassicControllerGuiTest gui = null;
|
ClassicControllerGuiTest gui = null;
|
||||||
// if (wiimotes.length > 0) {
|
if (wiimotes.length > 0) {
|
||||||
// gui = new ClassicControllerGuiTest(wiimotes[0]);
|
gui = new ClassicControllerGuiTest(wiimotes[0]);
|
||||||
// }
|
}
|
||||||
// gui.setDefaultCloseOperation(WiiuseJGuiTest.EXIT_ON_CLOSE);
|
gui.setDefaultCloseOperation(WiiuseJGuiTest.EXIT_ON_CLOSE);
|
||||||
// gui.setVisible(true);
|
gui.setVisible(true);
|
||||||
// }
|
}
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JPanel classicControllerPanel;
|
private javax.swing.JPanel classicControllerPanel;
|
||||||
private javax.swing.JProgressBar leftShoulderBar;
|
private javax.swing.JProgressBar leftShoulderBar;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -168,13 +168,13 @@ public class ClassicControllerButtonsEventPanel extends javax.swing.JPanel imple
|
|||||||
|
|
||||||
/* button Down */
|
/* button Down */
|
||||||
if (buttons.isButtonDownJustPressed()) {
|
if (buttons.isButtonDownJustPressed()) {
|
||||||
drawFunction(g2, pressedColor, 53, 353, shapeButton);
|
drawFunction(g2, pressedColor, 60, 97, shapeButton);
|
||||||
}
|
}
|
||||||
if (buttons.isButtonDownHeld()) {
|
if (buttons.isButtonDownHeld()) {
|
||||||
drawFunction(g2, heldColor, 53, 353, shapeButton);
|
drawFunction(g2, heldColor, 60, 97, shapeButton);
|
||||||
}
|
}
|
||||||
if (buttons.isButtonDownJustReleased()) {
|
if (buttons.isButtonDownJustReleased()) {
|
||||||
drawFunction(g2, releasedColor, 53, 353, shapeButton);
|
drawFunction(g2, releasedColor, 60, 97, shapeButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* button FullLeft */
|
/* button FullLeft */
|
||||||
@@ -256,13 +256,13 @@ public class ClassicControllerButtonsEventPanel extends javax.swing.JPanel imple
|
|||||||
|
|
||||||
/* button Up */
|
/* button Up */
|
||||||
if (buttons.isButtonUpJustPressed()) {
|
if (buttons.isButtonUpJustPressed()) {
|
||||||
drawFunction(g2, pressedColor, 59, 50, shapeButton);
|
drawFunction(g2, pressedColor, 60, 50, shapeButton);
|
||||||
}
|
}
|
||||||
if (buttons.isButtonUpHeld()) {
|
if (buttons.isButtonUpHeld()) {
|
||||||
drawFunction(g2, heldColor, 59, 50, shapeButton);
|
drawFunction(g2, heldColor, 60, 50, shapeButton);
|
||||||
}
|
}
|
||||||
if (buttons.isButtonUpJustReleased()) {
|
if (buttons.isButtonUpJustReleased()) {
|
||||||
drawFunction(g2, releasedColor, 59, 50, shapeButton);
|
drawFunction(g2, releasedColor, 60, 50, shapeButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* button X */
|
/* button X */
|
||||||
|
|||||||
Reference in New Issue
Block a user