j3d.org Code

org.j3d.device.input.jinput
Class AxisTracker

java.lang.Object
  extended by org.j3d.device.input.Tracker
      extended by org.j3d.device.input.jinput.AxisTracker

public class AxisTracker
extends Tracker

A tracker implementation sourcing values from a USB axis.

This tracker will not put its values into world coordinates. They will represent velocity direction vectors for navigation.

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
AxisTracker(net.java.games.input.Component[] axes, int[] functions)
           
 
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, TrackerState state)
          Get the current state of this tracker.
 void updateData()
           
 
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

AxisTracker

public AxisTracker(net.java.games.input.Component[] axes,
                   int[] functions)
Method Detail

beginPolling

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

Specified by:
beginPolling in class Tracker

endPolling

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

Specified by:
endPolling in class Tracker

getActionMask

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

Specified by:
getActionMask in class Tracker
Returns:
The currently set action mask.

getState

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

Specified by:
getState in class Tracker
Parameters:
layer - The ID of the visual layer to get the state from
subLayer - The ID of the contained internal layer from the main layer to get the state from
state - The current state

updateData

public void updateData()

j3d.org Code

Latest Info from http://code.j3d.org/
Copyright © 2001 - j3d.org