|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.j3d.device.input.Tracker org.j3d.device.input.jinput.AxisTracker
public class AxisTracker
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.
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 |
---|
public AxisTracker(net.java.games.input.Component[] axes, int[] functions)
Method Detail |
---|
public void beginPolling()
beginPolling
in class Tracker
public void endPolling()
endPolling
in class Tracker
public int getActionMask()
getActionMask
in class Tracker
public void getState(int layer, int subLayer, TrackerState state)
getState
in class Tracker
layer
- The ID of the visual layer to get the state fromsubLayer
- The ID of the contained internal layer from the
main layer to get the state fromstate
- The current statepublic void updateData()
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |