Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.3 . Guide To CA-Clipper - <b>set eventmask</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 SET EVENTMASK
 Specify events to be returned by the INKEY() function
------------------------------------------------------------------------------
 Syntax

     SET EVENTMASK TO <nEventMask>

 Arguments

     <nEventMask> specifies which events should be returned by the
     INKEY() function.  This argument can be any combination of the following
     values which are defined in Inkey.ch:

     Inkey Constants
     ------------------------------------------------------------------------
     Constant       Value     Description
     ------------------------------------------------------------------------
     INKEY_MOVE     1         Mouse Events
     INKEY_LDOWN    2         Mouse Left Click Down
     INKEY_LUP      4         Mouse Left Click Up
     INKEY_RDOWN    8         Mouse Right Click Down
     INKEY_RUP      16        Mouse Right Click Up
     INKEY_KEYBOARD 128       Keyboard Events
     INKEY_ALL      159       All Mouse and Keyboard Events
     ------------------------------------------------------------------------

     If a value is not specified for SET EVENTMASK, the default value of 128
     (keyboard events only) will be used.

 Description

     The SET EVENTMASK command specifies which events should be returned by
     the INKEY() function.  Using this mask you can have INKEY() return only
     the events in which you are interested.

 Example

     The following example will inform INKEY() to terminate if a keyboard
     event occurs or the left mouse button has been clicked.  If no events
     occur within 5 seconds, INKEY() will terminate.

        SET EVENTMASK TO INKEY_KEYBOARD + INKEY_LDOWN
        ? INKEY( 5 )


See Also: INKEY()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson