net.jhid.core.devices
Interface IAxis
- All Known Subinterfaces:
- IAbsoluteAxis, IRelativeAxis
- All Known Implementing Classes:
- AbsoluteAxis, AbstractAxis, RelativeAxis
- public interface IAxis
Represents a numeric input from a IDevice
.
There are two types of axes: relative (IRelativeAxis
)
and absolute (IAbsoluteAxis
).
You cannot add a listener to an abstract axis, you have to use one of the
addListener methods in the subinterfaces: relative and absolute events
are different.
getDevice
public IDevice getDevice()
- Returns:
- The device this axis belongs to.
getId
public AxisId getId()
- Returns:
- The identifier of this axis.
getValue
public int getValue()
- Returns the current position of this axis.