Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.device.input.keyboard
Class KeyboardTracker

java.lang.Object
  extended by org.j3d.device.input.Tracker
      extended by org.j3d.renderer.aviatrix3d.device.input.keyboard.KeyboardTracker
All Implemented Interfaces:
java.awt.event.KeyListener, java.util.EventListener

public class KeyboardTracker
extends org.j3d.device.input.Tracker
implements java.awt.event.KeyListener

A tracker implementation for keyboard devices.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Field Summary
 
Fields inherited from class org.j3d.device.input.Tracker
MASK_NONE, MASK_ORIENTATION, MASK_PICKING, MASK_POSITION
 
Constructor Summary
KeyboardTracker()
           
 
Method Summary
 void beginPolling()
          Notification that tracker polling is beginning.
 void endPolling()
          Notification that tracker polling is ending.
 int getActionMask()
          What action types does this sensor return.
 void getState(int layer, int subLayer, org.j3d.device.input.TrackerState state)
          Get the current state of this tracker.
 void keyPressed(java.awt.event.KeyEvent evt)
          Process a key press event.
 void keyReleased(java.awt.event.KeyEvent evt)
          Process a key release event.
 void keyTyped(java.awt.event.KeyEvent evt)
          Process a key typed event.
 
Methods inherited from class org.j3d.device.input.Tracker
actionChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyboardTracker

public KeyboardTracker()
Method Detail

getActionMask

public int getActionMask()
What action types does this sensor return. This a combination of ACTION masks.

Specified by:
getActionMask in class org.j3d.device.input.Tracker
Returns:
The action mask.

beginPolling

public void beginPolling()
Notification that tracker polling is beginning.

Specified by:
beginPolling in class org.j3d.device.input.Tracker

endPolling

public void endPolling()
Notification that tracker polling is ending.

Specified by:
endPolling in class org.j3d.device.input.Tracker

getState

public void getState(int layer,
                     int subLayer,
                     org.j3d.device.input.TrackerState state)
Get the current state of this tracker.

Specified by:
getState in class org.j3d.device.input.Tracker
Parameters:
layer - The ID of the layer to get the state for
subLayer - The ID of the sub layer within the parent layer
state - The current state

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Process a key press event.

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Process a key release event.

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Process a key typed event.

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
evt - The event that caused this method to be called

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org