net.java.games.input
Class LinuxAbstractController
java.lang.Object
net.java.games.input.AbstractController
net.java.games.input.LinuxAbstractController
- All Implemented Interfaces:
- Controller
final class LinuxAbstractController
- extends AbstractController
Represents a Linux controller
Methods inherited from class net.java.games.input.AbstractController |
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getRumblers, poll, setDeviceEventQueueSize, setEventQueueSize, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LinuxAbstractController
protected LinuxAbstractController(LinuxEventDevice device,
Component[] components,
Controller[] children,
Rumbler[] rumblers,
Controller.Type type)
throws java.io.IOException
- Throws:
java.io.IOException
getPortType
public final Controller.PortType getPortType()
- Description copied from class:
AbstractController
- Returns the port type for this Controller.
- Specified by:
getPortType
in interface Controller
- Overrides:
getPortType
in class AbstractController
- Returns:
- PortType.UNKNOWN by default, can be overridden
pollDevice
public final void pollDevice()
throws java.io.IOException
- Overrides:
pollDevice
in class AbstractController
- Throws:
java.io.IOException
getNextDeviceEvent
protected final boolean getNextDeviceEvent(Event event)
throws java.io.IOException
- Specified by:
getNextDeviceEvent
in class AbstractController
- Throws:
java.io.IOException
getType
public Controller.Type getType()
- Description copied from class:
AbstractController
- Returns the type of the Controller.
- Specified by:
getType
in interface Controller
- Overrides:
getType
in class AbstractController