|
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.jinput.Wheel
public class Wheel
A gamepad device implemented using the JInput library.
Field Summary |
---|
Fields inherited from interface org.j3d.device.input.InputDevice |
---|
FUNC_BUTTON_1, FUNC_BUTTON_2, FUNC_BUTTON_3, FUNC_BUTTON_4, FUNC_L1_BUTTON, FUNC_LEFT_HAT, FUNC_LEFT_STICK_X, FUNC_LEFT_STICK_Y, FUNC_LEFT_STICK_Z, FUNC_NAV_X, FUNC_NAV_Y, FUNC_NAV_Y_CENTERED, FUNC_NONE, FUNC_ORIENT_X, FUNC_ORIENT_Y, FUNC_R1_BUTTON, FUNC_RIGHT_STICK_X, FUNC_RIGHT_STICK_Y, FUNC_START_BUTTON, FUNC_THROTTLE, FUNC_VIEWPOINT_NEXT, FUNC_WHEEL_X |
Constructor Summary | |
---|---|
Wheel(net.java.games.input.Controller c,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
getName()
Get the name of this device. |
void |
getState(WheelState state)
Get the current state of this device. |
int |
getTrackerCount()
Get the number of trackers. |
Tracker[] |
getTrackers()
Get the trackers of this device. |
void |
setEquilibriumPoint(float val)
Set the equilibrium point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Wheel(net.java.games.input.Controller c, java.lang.String name)
Method Detail |
---|
public java.lang.String getName()
getName
in interface InputDevice
public void getState(WheelState state)
getState
in interface WheelDevice
state
- The state structure to fill in.public void setEquilibriumPoint(float val)
setEquilibriumPoint
in interface WheelDevice
val
- The wheel direction, from left(-1) to 1(right).public int getTrackerCount()
getTrackerCount
in interface TrackerDevice
public Tracker[] getTrackers()
getTrackers
in interface TrackerDevice
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |