j3d.org Code

org.j3d.device.input
Class JoystickState

java.lang.Object
  extended by org.j3d.device.input.DeviceState
      extended by org.j3d.device.input.GenericHIDState
          extended by org.j3d.device.input.JoystickState

public class JoystickState
extends GenericHIDState

Holds a single Joystick state.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Field Summary
 float hatX
          The hatX value
 boolean hatX_changed
          Did the hatX value change
 float hatY
          The hatY value
 boolean hatY_changed
          Did the hatY value change
 float stickX
          The stickX value
 boolean stickX_changed
          Did the stickX value change
 float stickY
          The stickY value
 boolean stickY_changed
          Did the stickY value change
 float stickZ
          The stickY value
 boolean stickZ_changed
          Did the stickZ value change
 float throttleSlider
          The throttleSlider value
 boolean throttleSlider_changed
          Did the throttleSlider value change
 boolean triggerButton
          The triggerButton value
 boolean triggerButton_changed
          Did triggerButton value change
 
Fields inherited from class org.j3d.device.input.GenericHIDState
axisValue, changeValue
 
Constructor Summary
JoystickState()
           
 
Method Summary
 void clearChanged()
          Clear changed flags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stickX

public float stickX
The stickX value


stickY

public float stickY
The stickY value


stickZ

public float stickZ
The stickY value


hatX

public float hatX
The hatX value


hatY

public float hatY
The hatY value


throttleSlider

public float throttleSlider
The throttleSlider value


throttleSlider_changed

public boolean throttleSlider_changed
Did the throttleSlider value change


triggerButton

public boolean triggerButton
The triggerButton value


triggerButton_changed

public boolean triggerButton_changed
Did triggerButton value change


hatX_changed

public boolean hatX_changed
Did the hatX value change


hatY_changed

public boolean hatY_changed
Did the hatY value change


stickX_changed

public boolean stickX_changed
Did the stickX value change


stickY_changed

public boolean stickY_changed
Did the stickY value change


stickZ_changed

public boolean stickZ_changed
Did the stickZ value change

Constructor Detail

JoystickState

public JoystickState()
Method Detail

clearChanged

public void clearChanged()
Clear changed flags.

Overrides:
clearChanged in class DeviceState

j3d.org Code

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