com.threerings.util.keybd
Class Keyboard

java.lang.Object
  extended by com.threerings.util.keybd.Keyboard

public class Keyboard
extends Object

Provides access to the native operating system's auto-repeat keyboard settings.


Field Summary
protected static boolean _haveLib
          Whether the keyboard native library was successfully loaded.
 
Constructor Summary
Keyboard()
           
 
Method Summary
protected static boolean init()
          Initializes the library and returns true if it successfully did so.
static boolean isAvailable()
          Returns whether the native keyboard interface is available.
static boolean isKeyRepeatEnabled()
          Returns whether key auto-repeating is enabled.
static void main(String[] args)
          Tests keyboard functionality.
static void setKeyRepeat(boolean enabled)
          Sets whether key auto-repeating is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_haveLib

protected static boolean _haveLib
Whether the keyboard native library was successfully loaded.

Constructor Detail

Keyboard

public Keyboard()
Method Detail

setKeyRepeat

public static void setKeyRepeat(boolean enabled)
Sets whether key auto-repeating is enabled.


isKeyRepeatEnabled

public static boolean isKeyRepeatEnabled()
Returns whether key auto-repeating is enabled.


main

public static void main(String[] args)
Tests keyboard functionality.


isAvailable

public static boolean isAvailable()
Returns whether the native keyboard interface is available.


init

protected static boolean init()
Initializes the library and returns true if it successfully did so.