Package net.java.games.input
Class LinuxCombinedController
- java.lang.Object
-
- net.java.games.input.AbstractController
-
- net.java.games.input.LinuxCombinedController
-
- All Implemented Interfaces:
Controller
public class LinuxCombinedController extends AbstractController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.java.games.input.Controller
Controller.PortType, Controller.Type
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
getNextDeviceEvent(Event event)
Controller.PortType
getPortType()
Returns the port type for this Controller.Controller.Type
getType()
Returns the type of the Controller.void
pollDevice()
-
Methods inherited from class net.java.games.input.AbstractController
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getRumblers, poll, setDeviceEventQueueSize, setEventQueueSize, toString
-
-
-
-
Method Detail
-
getNextDeviceEvent
protected boolean getNextDeviceEvent(Event event) throws java.io.IOException
- Specified by:
getNextDeviceEvent
in classAbstractController
- 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 interfaceController
- Overrides:
getPortType
in classAbstractController
- Returns:
- PortType.UNKNOWN by default, can be overridden
-
pollDevice
public final 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
-
-