Package net.java.games.input
Class WinTabDevice
- java.lang.Object
-
- net.java.games.input.AbstractController
-
- net.java.games.input.WinTabDevice
-
- All Implemented Interfaces:
Controller
public class WinTabDevice extends AbstractController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.java.games.input.Controller
Controller.PortType, Controller.Type
-
-
Field Summary
Fields Modifier and Type Field Description static int
NPressureAxis
static int
OrientationAxis
static int
RotationAxis
static int
TPressureAxis
static int
XAxis
static int
YAxis
static int
ZAxis
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WinTabDevice
createDevice(WinTabContext context, int deviceIndex)
protected boolean
getNextDeviceEvent(Event event)
Controller.Type
getType()
Returns the type of the Controller.protected void
pollDevice()
void
processPacket(WinTabPacket packet)
-
Methods inherited from class net.java.games.input.AbstractController
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getPortType, getRumblers, poll, setDeviceEventQueueSize, setEventQueueSize, toString
-
-
-
-
Field Detail
-
XAxis
public static final int XAxis
- See Also:
- Constant Field Values
-
YAxis
public static final int YAxis
- See Also:
- Constant Field Values
-
ZAxis
public static final int ZAxis
- See Also:
- Constant Field Values
-
NPressureAxis
public static final int NPressureAxis
- See Also:
- Constant Field Values
-
TPressureAxis
public static final int TPressureAxis
- See Also:
- Constant Field Values
-
OrientationAxis
public static final int OrientationAxis
- See Also:
- Constant Field Values
-
RotationAxis
public static final int RotationAxis
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNextDeviceEvent
protected boolean getNextDeviceEvent(Event event) throws java.io.IOException
- Specified by:
getNextDeviceEvent
in classAbstractController
- Throws:
java.io.IOException
-
pollDevice
protected void pollDevice() throws java.io.IOException
- Overrides:
pollDevice
in classAbstractController
- Throws:
java.io.IOException
-
getType
public Controller.Type getType()
Description copied from class:AbstractController
Returns the type of the Controller.- Specified by:
getType
in interfaceController
- Overrides:
getType
in classAbstractController
-
processPacket
public void processPacket(WinTabPacket packet)
-
createDevice
public static WinTabDevice createDevice(WinTabContext context, int deviceIndex)
-
-