X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=nxtOSEK%2Flejos_nxj%2Fdocs%2Fapidocs%2Flejos%2Fnxt%2FButton.html;fp=nxtOSEK%2Flejos_nxj%2Fdocs%2Fapidocs%2Flejos%2Fnxt%2FButton.html;h=902b202f4f328b776f62507d884163fb0fdd746e;hb=02b55ed885bb3a3127d172ffe12a89eef34ef839;hp=a1263a62e02d2a6f35411a24194442dbdf8a21e1;hpb=815664f1648545c25bb41fd4c99117bf488c7735;p=nxt-jsp%2Flejos_nxj.git diff --git a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html index a1263a6..902b202 100644 --- a/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html +++ b/nxtOSEK/lejos_nxj/docs/apidocs/lejos/nxt/Button.html @@ -2,7 +2,7 @@ - + Button (leJOS NXT API documentation) @@ -160,6 +160,14 @@ Abstraction for an NXT button.
          The Right button. + + +static String +VOL_SETTING + +
+            +   @@ -196,6 +204,30 @@ Abstraction for an NXT button. +static int +getKeyClickLength() + +
+          Return the current key click length. + + + +static int +getKeyClickTone(int key) + +
+          Return the click freq for a particular key. + + + +static int +getKeyClickVolume() + +
+          Return the current key click volume. + + +  boolean isPressed() @@ -204,6 +236,14 @@ Abstraction for an NXT button. +static void +loadSettings() + +
+          Load the current system settings associated with this class. + + + static int readButtons() @@ -212,6 +252,31 @@ Abstraction for an NXT button. +static void +setKeyClickLength(int len) + +
+          Set the len used for key clicks + + + +static void +setKeyClickTone(int key, + int freq) + +
+          Set the frequency used for a particular key. + + + +static void +setKeyClickVolume(int vol) + +
+          Set the volume used for key clicks + + + static int waitForPress() @@ -249,6 +314,16 @@ Abstraction for an NXT button. +

+VOL_SETTING

+
+public static final String VOL_SETTING
+
+
+
See Also:
Constant Field Values
+
+
+

ENTER

@@ -437,6 +512,125 @@ public void callListeners()
+
+ +

+setKeyClickVolume

+
+public static void setKeyClickVolume(int vol)
+
+
Set the volume used for key clicks +

+

+
+
+
+
Parameters:
vol -
+
+
+
+ +

+getKeyClickVolume

+
+public static int getKeyClickVolume()
+
+
Return the current key click volume. +

+

+
+
+
+ +
Returns:
current click volume
+
+
+
+ +

+setKeyClickLength

+
+public static void setKeyClickLength(int len)
+
+
Set the len used for key clicks +

+

+
+
+
+
Parameters:
len - the click duration
+
+
+
+ +

+getKeyClickLength

+
+public static int getKeyClickLength()
+
+
Return the current key click length. +

+

+
+
+
+ +
Returns:
key click duration
+
+
+
+ +

+setKeyClickTone

+
+public static void setKeyClickTone(int key,
+                                   int freq)
+
+
Set the frequency used for a particular key. Setting this to 0 disables + the click. Note that key may also be a corded set of keys. +

+

+
+
+
+
Parameters:
key - the NXT key
freq - the frequency
+
+
+
+ +

+getKeyClickTone

+
+public static int getKeyClickTone(int key)
+
+
Return the click freq for a particular key. +

+

+
+
+
+ +
Returns:
key click duration
+
+
+
+ +

+loadSettings

+
+public static void loadSettings()
+
+
Load the current system settings associated with this class. Called + automatically to initialize the class. May be called if it is required + to reload any settings. +

+

+
+
+
+
+
+