Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - shiftkey() test if the shift key is pressed http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 shiftkey()          Test if the Shift key is pressed
------------------------------------------------------------------------------
 Declaration
   io.hdr

 Syntax
   func logical shiftkey extern

 Arguments
   None.

 Return
   A logical indicating the status of the Shift key.

 Description
   This function returns .t. if the Shift key was pressed at function call.

 Example
   #define EXAMPLE_IO
   #include example.hdr

   proc Test_shiftkey
   clear
   cursor( .f. )
   ? "Press the Shift key or Esc to finish"
   do while .not. lastkey() == K_ESC
      inkey()
      if shiftkey()
         @ 0, 70 ?? "Shift"
      else
         @ 0, 70 ?? "     "
      endif
   enddo
   endproc

   proc main
   Test_shiftkey()
   endproc

See Also: altkey() capskey() ctrlkey() insertkey() numkey() scrollkey()

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