net.java.games.input
Class LinuxJoystickAbstractController

java.lang.Object
  extended by net.java.games.input.AbstractController
      extended by net.java.games.input.LinuxJoystickAbstractController
All Implemented Interfaces:
Controller

final class LinuxJoystickAbstractController
extends AbstractController

Represents a Linux controller


Nested Class Summary
 
Nested classes/interfaces inherited from interface net.java.games.input.Controller
Controller.PortType, Controller.Type
 
Field Summary
 
Fields inherited from class net.java.games.input.AbstractController
EVENT_QUEUE_DEPTH
 
Constructor Summary
protected LinuxJoystickAbstractController(LinuxJoystickDevice device, Component[] components, Controller[] children, Rumbler[] rumblers)
           
 
Method Summary
protected  boolean getNextDeviceEvent(Event event)
           
 Controller.Type getType()
          Returns the type of the Controller.
 void pollDevice()
           
protected  void setDeviceEventQueueSize(int size)
          Plugins override this method to adjust their internal event queue size
 
Methods inherited from class net.java.games.input.AbstractController
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getPortType, getRumblers, poll, setEventQueueSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinuxJoystickAbstractController

protected LinuxJoystickAbstractController(LinuxJoystickDevice device,
                                          Component[] components,
                                          Controller[] children,
                                          Rumbler[] rumblers)
Method Detail

setDeviceEventQueueSize

protected final void setDeviceEventQueueSize(int size)
                                      throws java.io.IOException
Description copied from class: AbstractController
Plugins override this method to adjust their internal event queue size

Overrides:
setDeviceEventQueueSize in class AbstractController
Throws:
java.io.IOException

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