[operations] [attributes] [fields] [template] [definition]
[implementation] [documentation]
To use the search tool you need to use a browser which supports JAVA (c)

[next] [prev] [superclass] [next peer] [prev peer] [subclass] [index] [hierarchy]

KeyInput

inherits from Input

Object <- Input <- KeyInput



Operations

Get list of all operations

DispatchInput
Init
QueueKey


Attributes

Get list of all attributes

KeyCode


Fields

Field Type
Input: startTime: Unsigned
stopTime: Unsigned
KeyInput: keyCode: Character


Instance template

instance KeyInput tag;
      startTime: 0;
       stopTime: 0;
        keyCode: nilObject;
end instance;

Class definition

// KeyInput represents a typed key
// most key input devices are simple and can use the base class, thus QueueKey is provided
Define Class KeyInput;
    inherits from Input;

    field keyCode: Character, getter;

    intrinsic QueueKey(key: Character; time: Unsigned);
        // create and queue a key input

    attribute KeyCode: Character, readOnly;
        // code for the key
    overrides Init, DispatchInput;
end class;