Package net.java.games.input
Class WinTabComponent
java.lang.Object
net.java.games.input.AbstractComponent
net.java.games.input.WinTabComponent
- All Implemented Interfaces:
- Component
- Direct Known Subclasses:
- WinTabButtonComponent,- WinTabCursorComponent
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.java.games.input.ComponentComponent.Identifier, Component.POV
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedWinTabComponent(WinTabContext context, int parentDevice, String name, Component.Identifier id) protectedWinTabComponent(WinTabContext context, int parentDevice, String name, Component.Identifier id, int min, int max) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic Collection<WinTabButtonComponent>createButtons(WinTabContext context, int deviceIndex, int numberOfButtons) static List<WinTabComponent>createComponents(WinTabContext context, int parentDevice, int axisId, int[] axisRanges) static Collection<WinTabCursorComponent>createCursors(WinTabContext context, int deviceIndex, String[] cursorNames) 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.protected floatpoll()processPacket(WinTabPacket packet) Methods inherited from class net.java.games.input.AbstractComponentgetDeadZone, getIdentifier, getName, getPollData, toString
- 
Field Details- 
lastKnownValueprotected float lastKnownValue
 
- 
- 
Constructor Details- 
WinTabComponentprotected WinTabComponent(WinTabContext context, int parentDevice, String name, Component.Identifier id, int min, int max) 
- 
WinTabComponentprotected WinTabComponent(WinTabContext context, int parentDevice, String name, Component.Identifier id) 
 
- 
- 
Method Details- 
poll- Specified by:
- pollin class- AbstractComponent
- Throws:
- IOException
 
- 
isAnalogpublic boolean isAnalog()Description copied from class:AbstractComponentReturns whether or not the axis is analog, or false if it is digital.- Specified by:
- isAnalogin interface- Component
- Overrides:
- isAnalogin class- AbstractComponent
- Returns:
- false by default, can be overridden
 
- 
isRelativepublic boolean isRelative()Description copied from interface:ComponentReturnstrueif data returned frompollis relative to the last call, orfalseif data is absolute.
- 
createComponentspublic static List<WinTabComponent> createComponents(WinTabContext context, int parentDevice, int axisId, int[] axisRanges) 
- 
createButtonspublic static Collection<WinTabButtonComponent> createButtons(WinTabContext context, int deviceIndex, int numberOfButtons) 
- 
processPacket
- 
createCursorspublic static Collection<WinTabCursorComponent> createCursors(WinTabContext context, int deviceIndex, String[] cursorNames) 
 
-