git-svn-id: http://wiiusej.googlecode.com/svn/trunk@4 ae48ae66-6a45-0410-b38e-211266189506
This commit is contained in:
54
WiiuseJ/src/wiiusej/OrientThresholdRequest.java
Normal file
54
WiiuseJ/src/wiiusej/OrientThresholdRequest.java
Normal 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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user