EventMaps van LircDevice gedeeltelijk toegevoegd. In WiimoteDevice SHIFT mechanisme toegepast. iTunes uitgeprobeerd: mechanisme verzinnen om in thread bepaalde taak te draaien!
This commit is contained in:
@@ -160,7 +160,7 @@ public class WiimoteWiigee extends Wiigee {
|
||||
/**
|
||||
* Sets the Trainbutton for all wiimotes;
|
||||
*
|
||||
* @param b SelectButton encoding, see static Wiimote values
|
||||
* @param b ManageButton encoding, see static Wiimote values
|
||||
*/
|
||||
public void setTrainButton(int b) {
|
||||
for (int i = 0; i < this.devices.size(); i++) {
|
||||
@@ -171,7 +171,7 @@ public class WiimoteWiigee extends Wiigee {
|
||||
/**
|
||||
* Sets the Recognitionbutton for all wiimotes;
|
||||
*
|
||||
* @param b SelectButton encoding, see static Wiimote values
|
||||
* @param b ManageButton encoding, see static Wiimote values
|
||||
*/
|
||||
public void setRecognitionButton(int b) {
|
||||
for (int i = 0; i < this.devices.size(); i++) {
|
||||
@@ -182,7 +182,7 @@ public class WiimoteWiigee extends Wiigee {
|
||||
/**
|
||||
* Sets the CloseGesturebutton for all wiimotes;
|
||||
*
|
||||
* @param b SelectButton encoding, see static Wiimote values
|
||||
* @param b ManageButton encoding, see static Wiimote values
|
||||
*/
|
||||
public void setCloseGestureButton(int b) {
|
||||
for (int i = 0; i < this.devices.size(); i++) {
|
||||
|
||||
@@ -101,7 +101,7 @@ public class Device {
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a ButtonListener to the Device. Everytime a SelectButton has been
|
||||
* Adds a ButtonListener to the Device. Everytime a ManageButton has been
|
||||
* pressed or released, the Listener would be notified about this via
|
||||
* the corresponding Events.
|
||||
*
|
||||
|
||||
@@ -81,7 +81,7 @@ public class WiimoteStreamer extends Thread {
|
||||
if((b[1] & 0xFF) == 0x31) {
|
||||
this.handleButtonData(new byte[] { b[2], b[3] });
|
||||
this.handleAccelerationData(new byte[] { b[4], b[5], b[6] });
|
||||
//Log.write("0x31: SelectButton + Acc");
|
||||
//Log.write("0x31: ManageButton + Acc");
|
||||
}
|
||||
else if ((b[1] & 0xFF) == 0x33) {
|
||||
this.handleButtonData(new byte[] { b[2], b[3] });
|
||||
@@ -90,7 +90,7 @@ public class WiimoteStreamer extends Thread {
|
||||
b[10], b[11], b[12],
|
||||
b[13], b[14], b[15],
|
||||
b[16], b[17], b[18]});
|
||||
//Log.write("0x33: SelectButton + Acc + Irda");
|
||||
//Log.write("0x33: ManageButton + Acc + Irda");
|
||||
}
|
||||
else if ((b[1] & 0xFF) == 0x37) {
|
||||
this.handleButtonData(new byte[] { b[2], b[3] });
|
||||
@@ -100,7 +100,7 @@ public class WiimoteStreamer extends Thread {
|
||||
b[13], b[14], b[15], b[16]});
|
||||
this.handleWiiMotionPlusData(
|
||||
new byte[]{b[17], b[18], b[19], b[20], b[21], b[22]});
|
||||
//Log.write("0x37: SelectButton + Acc + Ext");
|
||||
//Log.write("0x37: ManageButton + Acc + Ext");
|
||||
}
|
||||
else if ((b[1] & 0xFF) == 0x21) {
|
||||
this.handleButtonData(new byte[] { b[2], b[3] });
|
||||
|
||||
@@ -55,7 +55,7 @@ public class ButtonPressedEvent extends ActionStartEvent {
|
||||
|
||||
/**
|
||||
* Create a WiimoteButtonPressedEvent with the Wiimote source whose
|
||||
* SelectButton has been pressed and the integer representation of the button.
|
||||
* ManageButton has been pressed and the integer representation of the button.
|
||||
*
|
||||
* @param source
|
||||
* @param button
|
||||
|
||||
Reference in New Issue
Block a user