j3d.org Code

org.j3d.device.input
Interface GamepadDevice

All Superinterfaces:
ControllerDevice, InputDevice
All Known Implementing Classes:
Gamepad

public interface GamepadDevice
extends ControllerDevice

Devices which map data to gamepads.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

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
 
Method Summary
 void getState(GamepadState state)
          Get the current state of this device.
 void setRumblerX(float val)
          Set the rumblerX axis.
 void setRumblerY(float val)
          Set the rumblerY axis.
 
Methods inherited from interface org.j3d.device.input.InputDevice
getName
 

Method Detail

getState

void getState(GamepadState state)
Get the current state of this device. Any arrays too small will be resized.

Parameters:
state - The state structure to fill in.

setRumblerX

void setRumblerX(float val)
Set the rumblerX axis.

Parameters:
val - The rumbler strength, from -1 to 1.

setRumblerY

void setRumblerY(float val)
Set the rumblerY axis.

Parameters:
val - The rumbler strength, from -1 to 1.

j3d.org Code

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