User Tools

Site Tools


jvs:cigal:manual:chapter4:keyrd

CIGAL Reference Manual, Chapter 4 (keyrd):

Keyrd -- Integer pseudo-variable reads a key from keyboard or cursor device

usage: value = keyrd

KEYRD is an internally defined pseudo-variable. It can be used as a number variable, except that each time you read its value it waits for you to press a key on the keyboard or on one of the active cursor pointing devices, if present. If you press a keyboard key, the value returned for KEYRD is the ASCII code for the character pressed. Using the mouse, the value of KEYRD is:

           1    Left button
           2    Right button
           3    Both buttons
 For the tablet pen device, KEYRD's value is:
           1    Pressing the pen tip
           2    Pressing the side button
           3    Pressing both tip and side button
 For the tablet 4 button cursor, the value of KEYRD will be between 1 and 15
 depending on which button(s) are pressed.

See Also:
CIGAL Home, CIGAL Manual, List, Manual Help

jvs/cigal/manual/chapter4/keyrd.txt · Last modified: 2022/11/18 16:08 (external edit)