qck.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
PEN Function
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 Returns the status of the light pen.
 
    PEN(n%)
 
    ■ n%           Specifies the lightpen status information to return:
 
                   Value  Returns
                   ═════  ══════════════════════════════════════════════════
                   0      Whether pen was used since last call (-1 if yes,
                          0 if no)
                   1      X screen coordinate of the last pen press
                   2      Y screen coordinate of the last pen press
                   3      Current pen switch status (-1 if down, 0 if up)
                   4      X screen coordinate where the pen last left screen
                   5      Y screen coordinate where the pen last left screen
                   6      Row number of the last pen press
                   7      Column of the last pen press
                   8      Row where the pen last left the screen
                   9      Column where the pen last left the screen
 
 See Also
    ◄ON PEN Statement►                 ◄PEN Statement►
    ◄Screen Mode Summary►              ◄SCREEN Statement►