All Packages  This Package  Class Hierarchy  Class Search  Index

Class bmsi.fsp.Keyboard
java.lang.Object
   |
   +----bmsi.fsp.Keyboard

  Summary

public class  Keyboard
     extends java.lang.Object
{
          // Fields 1
     public static final int UNDEF;

          // Constructors 1
     public Keyboard(InputStream);

          // Methods 3
     public void clear();
     public void defineKey(byte[], int);
     public int readKey() throws IOException;

          // Inner Classes 1
     static class Keyboard.Key
}

Recognize sequences of bytes as virtual keys.

Author:
Stuart D. Gathman Copyright (C) 2000 Business Management Systems, Inc.


  Cross Reference

Returned By:
PScreen.getKeyboard()





  Fields

· UNDEF

Summary  |  Top
   public static final int UNDEF


  Constructors

· Keyboard

Summary  |  Top

   public Keyboard(InputStream in) 


  Methods

· clear

Summary  |  Top
   public void clear() 

Remove all virtual key mappings.



· defineKey

Summary  |  Top
   public void defineKey(byte[] seq, 
                         int key) 

Map a sequence of bytes to a virtual key. The sequence of bytes may have zero length. This will assign a virtual key code returned when there is no keyboard input available.

Parameter Description
seq the sequence of bytes
key the virtual key code, UNDEF if undefined



· readKey

Summary  |  Top
   public int readKey()  throws IOException

Return the next virtual key from the InputStream.



All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7