Package net.java.games.input
Interface Component
- All Known Implementing Classes:
- AbstractComponent,- LinuxJoystickPOV,- WinTabButtonComponent,- WinTabComponent,- WinTabCursorComponent
public interface Component
An axis is a single button, slider, or dial, which has a single range.  An
 axis can hold information for motion (linear or rotational), velocity,
 force, or acceleration.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classIdentifiers for different Axes.static classPOV enum for different positions.
- 
Method SummaryModifier and TypeMethodDescriptionfloatReturns the suggested dead zone for this axis.Returns the identifier of the axis.getName()Returns a human-readable name for this axis.floatReturns the data from the last time the control has been polled.booleanisAnalog()Returns whether or not the axis is analog, or false if it is digital.booleanReturnstrueif data returned frompollis relative to the last call, orfalseif data is absolute.
- 
Method Details- 
getIdentifierComponent.Identifier getIdentifier()Returns the identifier of the axis.
- 
isRelativeboolean isRelative()Returnstrueif data returned frompollis relative to the last call, orfalseif data is absolute.
- 
isAnalogboolean isAnalog()Returns whether or not the axis is analog, or false if it is digital.
- 
getDeadZonefloat getDeadZone()Returns the suggested dead zone for this axis. Dead zone is the amount polled data can vary before considered a significant change in value. An application can safely ignore changes less than this value in the positive or negative direction.- See Also:
 
- 
getPollDatafloat getPollData()Returns the data from the last time the control has been polled. If this axis is a button, the value returned will be either 0.0f or 1.0f. If this axis is normalized, the value returned will be between -1.0f and 1.0f.- See Also:
 
- 
getNameString getName()Returns a human-readable name for this axis.
 
-