/[libvob]/libvob/org/nongnu/libvob/input/Axis.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/input/Axis.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Sun Jun 29 09:25:24 2003 UTC revision 1.2 by tjl, Mon Jun 30 07:08:31 2003 UTC
# Line 6  import java.util.*; Line 6  import java.util.*;
6  /** A single input axis.  /** A single input axis.
7   */   */
8  public interface Axis {  public interface Axis {
9        /** Get the (user-readable) name of this axis.
10         */
11        String getName();
12    
13        /** Set the main listener.
14         * There is only one main listener at a time - the previous one will be
15         * forgotten.
16         */
17      void setMainListener(AxisListener listener);      void setMainListener(AxisListener listener);
18    
19        /** Set the state of this object; normal, calibrating or choosing.
20         * @param state One of InputDeviceManager.STATE_*
21         */
22        void setState(int state);
23    
24        /** In the choosing state, returns the probability that this
25         * axis has been chosen; some function of how much this
26         * axis has been moved, between 0 and 1.
27         */
28        float getChoiceProbability();
29  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26