net.java.games.input
Class LinuxForceFeedbackEffect

java.lang.Object
  extended by net.java.games.input.LinuxForceFeedbackEffect
All Implemented Interfaces:
Rumbler
Direct Known Subclasses:
LinuxConstantFF, LinuxRumbleFF

abstract class LinuxForceFeedbackEffect
extends java.lang.Object
implements Rumbler


Constructor Summary
LinuxForceFeedbackEffect(LinuxEventDevice device)
           
 
Method Summary
 Component.Identifier getAxisIdentifier()
          Get the axis identifier the rumbler is attached to
 java.lang.String getAxisName()
          Get the string name of the axis the rumbler is attached to
protected  LinuxEventDevice getDevice()
           
 void rumble(float intensity)
          Rumble with the specified intensity.
protected abstract  int upload(int id, float intensity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinuxForceFeedbackEffect

public LinuxForceFeedbackEffect(LinuxEventDevice device)
                         throws java.io.IOException
Throws:
java.io.IOException
Method Detail

upload

protected abstract int upload(int id,
                              float intensity)
                       throws java.io.IOException
Throws:
java.io.IOException

getDevice

protected final LinuxEventDevice getDevice()

rumble

public final void rumble(float intensity)
Description copied from interface: Rumbler
Rumble with the specified intensity.

Specified by:
rumble in interface Rumbler

getAxisName

public final java.lang.String getAxisName()
Description copied from interface: Rumbler
Get the string name of the axis the rumbler is attached to

Specified by:
getAxisName in interface Rumbler
Returns:
The axis name

getAxisIdentifier

public final Component.Identifier getAxisIdentifier()
Description copied from interface: Rumbler
Get the axis identifier the rumbler is attached to

Specified by:
getAxisIdentifier in interface Rumbler
Returns:
The axis identifier