wiiusej.wiiuseapirequest
Class LedsRequest
java.lang.Object
wiiusej.wiiuseapirequest.WiiUseApiRequest
wiiusej.wiiuseapirequest.LedsRequest
public class LedsRequest
- extends WiiUseApiRequest
Represents a request to set leds of the wiimote with WiiUse API.
- Author:
- guiguito
Field Summary |
private boolean |
led1
|
private boolean |
led2
|
private boolean |
led3
|
private boolean |
led4
|
Fields inherited from class wiiusej.wiiuseapirequest.WiiUseApiRequest |
WIIUSE_ACCEL_THRESHOLHD_REQUEST, WIIUSE_ACTIVATE_CONTINUOUS_REQUEST, WIIUSE_ACTIVATE_IR_TRACKING_REQUEST, WIIUSE_ACTIVATE_MOTION_SENSING_REQUEST, WIIUSE_ACTIVATE_RUMBLE_REQUEST, WIIUSE_ACTIVATE_SMOOTHING_REQUEST, WIIUSE_ALPHA_SMOOTHING_REQUEST, WIIUSE_ASPECT_RATIO_16_9, WIIUSE_ASPECT_RATIO_4_3, WIIUSE_CLOSE_CONNECTION_REQUEST, WIIUSE_DEACTIVATE_CONTINUOUS_REQUEST, WIIUSE_DEACTIVATE_IR_TRACKING_REQUEST, WIIUSE_DEACTIVATE_MOTION_SENSING_REQUEST, WIIUSE_DEACTIVATE_RUMBLE_REQUEST, WIIUSE_DEACTIVATE_SMOOTHING_REQUEST, WIIUSE_LEDS_REQUEST, WIIUSE_ORIENT_THRESHOLHD_REQUEST, WIIUSE_RESYNC, WIIUSE_SENSOR_BAR_ABOVE, WIIUSE_SENSOR_BAR_BELOW, WIIUSE_SET_VIRTUAL_RESOLUTION, WIIUSE_STATUS_REQUEST |
Constructor Summary |
LedsRequest(int id,
int type)
Constructor setting the id of the wiimote concerned. |
LedsRequest(int id,
int type,
boolean l1,
boolean l2,
boolean l3,
boolean l4)
Constructor setting the id of the wiimote concerned. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
led1
private boolean led1
led2
private boolean led2
led3
private boolean led3
led4
private boolean led4
LedsRequest
public LedsRequest(int id,
int type)
- Constructor setting the id of the wiimote concerned.
- Parameters:
id
- id of the wiimote concernedtype
- type of the request
LedsRequest
public LedsRequest(int id,
int type,
boolean l1,
boolean l2,
boolean l3,
boolean l4)
- Constructor setting the id of the wiimote concerned.
- Parameters:
id
- id of the wiimote concernedtype
- type of the requestl1
- led1 status. True=ON, False=OFFl2
- led2 status. True=ON, False=OFFl3
- led3 status. True=ON, False=OFFl4
- led4 status. True=ON, False=OFF
isLed1
public boolean isLed1()
- Returns:
- the led1
setLed1
public void setLed1(boolean led1)
- Parameters:
led1
- the led1 to set
isLed2
public boolean isLed2()
- Returns:
- the led2
setLed2
public void setLed2(boolean led2)
- Parameters:
led2
- the led2 to set
isLed3
public boolean isLed3()
- Returns:
- the led3
setLed3
public void setLed3(boolean led3)
- Parameters:
led3
- the led3 to set
isLed4
public boolean isLed4()
- Returns:
- the led4
setLed4
public void setLed4(boolean led4)
- Parameters:
led4
- the led4 to set