net.java.games.input
Class AWTMouse

java.lang.Object
  extended by net.java.games.input.AbstractController
      extended by net.java.games.input.Mouse
          extended by net.java.games.input.AWTMouse
All Implemented Interfaces:
java.awt.event.AWTEventListener, java.util.EventListener, Controller

final class AWTMouse
extends Mouse
implements java.awt.event.AWTEventListener


Nested Class Summary
(package private) static class AWTMouse.Axis
           
(package private) static class AWTMouse.Button
           
 
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 AWTMouse()
           
 
Method Summary
 void eventDispatched(java.awt.AWTEvent event)
           
protected  boolean getNextDeviceEvent(Event event)
           
 void pollDevice()
           
 
Methods inherited from class net.java.games.input.Mouse
getBack, getButton3, getButton4, getExtra, getForward, getLeft, getMiddle, getPrimaryButton, getRight, getSecondaryButton, getSide, getTertiaryButton, getType, getWheel, getX, getY
 
Methods inherited from class net.java.games.input.AbstractController
getComponent, getComponents, getControllers, getEventQueue, getName, getPortNumber, getPortType, getRumblers, poll, setDeviceEventQueueSize, setEventQueueSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AWTMouse

protected AWTMouse()
Method Detail

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

eventDispatched

public final void eventDispatched(java.awt.AWTEvent event)
Specified by:
eventDispatched in interface java.awt.event.AWTEventListener