ncsa.devices.joystick
Class PCJoystickDevice
java.lang.Object
|
+--ncsa.devices.joystick.PCJoystickDevice
- public class PCJoystickDevice
- extends java.lang.Object
- implements javax.media.j3d.InputDevice, java.lang.Runnable, ncsa.devices.Fake2DInputDevice
This class is a direct mapping onto the proprietary Win32
implementation of a joystick. there is no translation done
to the values that are returned from the corrosponding windows
calls.
Fields inherited from interface javax.media.j3d.InputDevice |
BLOCKING,
DEMAND_DRIVEN,
NON_BLOCKING,
POLLED,
STREAMING |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
x
public int x
y
public int y
z
public int z
r
public int r
u
public int u
v
public int v
pov
public int pov
buttons
public int buttons
rotationScale
public float rotationScale
translationScale
public float translationScale
BUTTONS
public final int BUTTONS
PCJoystickDevice
public PCJoystickDevice()
getVector3f
public javax.vecmath.Vector3f getVector3f()
- Specified by:
- getVector3f in interface ncsa.devices.Fake2DInputDevice
getButtons
public int[] getButtons()
- Specified by:
- getButtons in interface ncsa.devices.Fake2DInputDevice
pollAndProcessInput
public final void pollAndProcessInput()
- Specified by:
- pollAndProcessInput in interface javax.media.j3d.InputDevice
main
public static void main(java.lang.String[] strings)
shutdown
public void shutdown()
getProcessingMode
public int getProcessingMode()
- Specified by:
- getProcessingMode in interface javax.media.j3d.InputDevice
getSensorCount
public int getSensorCount()
- Specified by:
- getSensorCount in interface javax.media.j3d.InputDevice
getSensor
public javax.media.j3d.Sensor getSensor(int index)
- Specified by:
- getSensor in interface javax.media.j3d.InputDevice
initialize
public boolean initialize()
- Specified by:
- initialize in interface javax.media.j3d.InputDevice
processStreamInput
public void processStreamInput()
- Specified by:
- processStreamInput in interface javax.media.j3d.InputDevice
setNominalPositionAndOrientation
public void setNominalPositionAndOrientation()
- Specified by:
- setNominalPositionAndOrientation in interface javax.media.j3d.InputDevice
setProcessingMode
public void setProcessingMode(int mode)
- Specified by:
- setProcessingMode in interface javax.media.j3d.InputDevice
run
public void run()
- Specified by:
- run in interface java.lang.Runnable
process
public void process()
close
public void close()
- Specified by:
- close in interface javax.media.j3d.InputDevice
NCSA Portfolio, Copyright 1997-1999, National Center for Supercomputing Applications, University of Illinois Urbana-Champaign, All Rights Reserved