net.java.games.input
Class LinuxKeyboard

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

final class LinuxKeyboard
extends Keyboard

Represents an OSX Keyboard


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 LinuxKeyboard(LinuxEventDevice device, Component[] components, Controller[] children, Rumbler[] rumblers)
           
 
Method Summary
protected  boolean getNextDeviceEvent(Event event)
           
 Controller.PortType getPortType()
          Returns the port type for this Controller.
 void pollDevice()
           
 
Methods inherited from class net.java.games.input.Keyboard
getType, isKeyDown
 
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
 

Constructor Detail

LinuxKeyboard

protected LinuxKeyboard(LinuxEventDevice device,
                        Component[] components,
                        Controller[] children,
                        Rumbler[] rumblers)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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

getNextDeviceEvent

protected final boolean getNextDeviceEvent(Event event)
                                    throws java.io.IOException
Specified by:
getNextDeviceEvent 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