save version 0.1. Last version working on wiiuse 0.9 API.

git-svn-id: http://wiiusej.googlecode.com/svn/trunk@38 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
guilhem.duche
2008-02-12 15:28:09 +00:00
parent 77acea6243
commit f44957073e

View File

@@ -0,0 +1,54 @@
package wiiusej;
/**
* Represents a request to set orientation Threshold in Wiiuse API.
* Orientation Threshold is the minimum angle (in degrees) between two events.
* @author gduche
*
*/
public class OrientThresholdRequest extends WiiUseApiRequest {
private float thresholhd;
/**
* Constructor setting the id of the wiimote concerned.
*
* @param id
* the id of the wiimote concerned.
*/
public OrientThresholdRequest(int id, int type) {
super(id, type);
}
/**
* Constructor setting the id of the wiimote concerned.
*
* @param id
* the id of the wiimote concerned.
* @param type
* type of the request
* @param th
* threshold in degrees
*/
public OrientThresholdRequest(int id, int type, float th) {
super(id, type);
thresholhd = th;
}
/**
* @return the thresholhd
*/
public float getThresholhd() {
return thresholhd;
}
/**
* @param thresholhd the thresholhd to set
*/
public void setThresholhd(float thresholhd) {
this.thresholhd = thresholhd;
}
}