Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_kybdstat()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_KYBDSTAT()


Syntax:        L_KYBDSTAT()


Purpose:       To determine the current keyboard status.


Arguments:     None.


Returns:       An integer value representing the keyboard status.
               The status value represents keys being held down and
               certain key states.

               1 = Right Shift key held down.
               2 = Left Shift key held down
               4 = Ctrl key being held down.
               8 = Left Alt key being held down.
               16 = Scroll mode active.
               32 = Num Lock mode active.
               64 = Caps Lock mode active.
               128 = Insert mode active.


Usage:         To test for more than one key being pressed simply add
               appropriate individual values together.


Examples:      * Test for RIGHT & LEFT SHIFT keys now!
               IF L_KYBDSTAT() = 3

                  Put some code here...

               ENDIF


Language:      Assembler

See Also: L_ISALT() L_ISALTR() L_ISHIFT() L_ISHIFTR()

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