public class IRRemoteSensor extends GenericIRSensor
GenericIRSensor.IRValue
Constructor and Description |
---|
IRRemoteSensor()
Creates a sensor instance connected to port S1.
|
IRRemoteSensor(SensorPort port)
Creates a sensor instance connected to the given port.
|
Modifier and Type | Method and Description |
---|---|
void |
addRemoteListener(RemoteListener listener)
Registers the given infrared remote listener.
|
int |
getCommand()
Returns the command code corresponding to the currently
pressed buttons on the the Remote IR Command.
|
java.lang.String |
getCommandStr()
Returns the string represention of the command code corresponding
to the currently pressed buttons on the the Remote IR Command.
|
static java.lang.String |
toString(int cmd)
Converts integer command to string representation.
|
public IRRemoteSensor(SensorPort port)
port
- the port where the sensor is plugged-inpublic IRRemoteSensor()
public void addRemoteListener(RemoteListener listener)
listener
- the RemoteListener to registerpublic int getCommand()
public static java.lang.String toString(int cmd)
cmd
- the integer commandpublic java.lang.String getCommandStr()