From f44957073e56efe011f999dc6654247423ac0ebd Mon Sep 17 00:00:00 2001 From: "guilhem.duche" Date: Tue, 12 Feb 2008 15:28:09 +0000 Subject: [PATCH] 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 --- .../src/wiiusej/OrientThresholdRequest.java | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 tag1/WiiUseJ/src/wiiusej/OrientThresholdRequest.java diff --git a/tag1/WiiUseJ/src/wiiusej/OrientThresholdRequest.java b/tag1/WiiUseJ/src/wiiusej/OrientThresholdRequest.java new file mode 100644 index 0000000..0d3cc14 --- /dev/null +++ b/tag1/WiiUseJ/src/wiiusej/OrientThresholdRequest.java @@ -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; + } + + + +}