FT Keyboard-Mouse

 FT_ALT()         Determine status of the Alt key
 FT_CAPLOCK()     Determine and optionally change the status of CapLock key
 FT_CTRL()        Determine status of the Ctrl key
 FT_LASTKEY()     Force LastKey() to return a programmer-defined value.
 FT_MBUTPRS()     Retrieve button press status
 FT_MBUTREL()     Get mouse button release information
 FT_MCONOFF()     Turn mouse cursur off if in specified region
 FT_MCURSOR()     Set the mouse cursor
 FT_MDBLCLK()     Return true if a double click was detected
 FT_MDEFCRS()     Define the mouse cursor
 FT_MGETCOORD()   Get mouse cursor position (text coord.) and button status
 FT_MGETPAGE()    Get the display page for the mouse pointer
 FT_MGETPOS()     Get mouse cursor position and button status
 FT_MGETSENS()    Get the mouse sensitivity parameters
 FT_MGETX()       Get mouse cursor row position
 FT_MGETY()       Get mouse cursor column position
 FT_MHIDECRS()    Decrement internal mouse cursor flag and hide mouse cursor
 FT_MINIT()       Initialize the mouse driver, vars and return status of mouse
 FT_MINREGION()   Test if the mouse cursor is in the passed region
 FT_MMICKEYS()    Get mickeys
 FT_MRESET()      Reset mouse driver and return status of mouse
 FT_MSETCOORD()   Position the mouse cursor using text screen coordinates
 FT_MSETPAGE()    Set the display page for the mouse pointer
 FT_MSETPOS()     Position the mouse cursor using virtual screen coordinates
 FT_MSETSENS()    Set the mouse sensitivity parameters
 FT_MSHOWCRS()    Increment internal cursor flag and display mouse cursor
 FT_MVERSION()    Get the mouse driver version
 FT_MXLIMIT()     Set vertical bounds of mouse using virtual screen coord.
 FT_MYLIMIT()     Set horiz. bounds of mouse using virtual screen coordinates
 FT_NUMLOCK()     Return status of NumLock key
 FT_PRTSCR()      Enable or disable the Print Screen key
 FT_PUTKEY()      Stuff a keystroke into the keyboard buffer
 FT_SCANCODE()    Wait for keypress and return keyboard scan code
 FT_SETKEYS()     Get array of keys redirected via the SetKey() or SET KEY
 FT_SETRATE()     Set the keyboard delay and repeat rate on PC/AT & PS/2
 FT_SHIFT()       Determine status of shift key
 FT_SINKEY()      Replacement for INKEY() that tests for SET KEY procedures

 

FT_SHIFT

FT_SHIFT()
 Determine status of shift key

 Syntax

      FT_SHIFT() -> lValue

 Arguments

     None

 Returns

     .T. if a shift key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not the
     shift key is pressed, such as during a MemoEdit().

 Examples

     IF FT_SHIFT()
        @24, 0 say "Shift"
     ELSE
        @24, 0 say "     "
     ENDIF

 Source: SHIFT.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_ALT()



FT_PRTSCR

FT_PRTSCR()
 Enable or disable the Print Screen key

 Syntax

      FT_PRTSCR( [ <lSetStat> ] ) -> lCurStat

 Arguments

     <lSetStat> set to .T. will enable the Print Screen key,
     .F. will disable it.  If omitted, leaves status as is.

 Returns

     The current state: .T. if enabled, .F. if disabled.

 Description

     This function is valuable if you have a need to disable the
     printscreen key.  It works by fooling the BIOS into thinking that
     a printscreen is already in progress.  The BIOS will then refuse
     to invoke the printscreen handler.

 Examples

     FT_PRTSCR( .F. )       && Disable the printscreen key
     FT_PRTSCR( .T. )       && Enable the printscreen key
     MemVar := FT_PRTSCR()  && Get the current status

 Source: PRTSCR.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_SHIFT() FT_ALT()

FT_NUMLOCK

FT_NUMLOCK()
 Return status of NumLock key

 Syntax

      FT_NUMLOCK( [ <lNewSetting> ] ) -> lCurrentSetting

 Arguments

     <lNewSetting> is optional and if supplied is the new setting
     for the CapLock key.  Specify .T. to turn CapLock on, or .F. to
     turn it off.

 Returns

     lValue is .T. if NumLock is set, .F. if it isn't set.  The value
     returned represents the setting in effect prior to any changes that
     might by made by <lNewSetting>.

 Description

     This function is useful if you need to know or set the status of the
     NumLock key for some reason.

 Examples

     IF FT_NUMLOCK()
        Qout( "NumLock is active" )
     ENDIF

   Another one, slightly strange, courtesy of Glenn Scott:

       function numBlink()
          local lOldNum := ft_numlock()

          while inkey( .5 ) != 27
             ft_numlock( !ft_numlock() )
          end

          return ft_numlock( lOldNum )

 Source: NUMLOCK.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_PRTSCR() FT_SHIFT() FT_ALT()



FT_CTRL

FT_CTRL()
 Determine status of the Ctrl key

 Syntax

      FT_CTRL() -> lValue

 Arguments

     None

 Returns

     .T. if Ctrl key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not
     the Ctrl key is pressed, such as during a MemoEdit().

 Examples

     IF FT_CTRL()
        @24, 0 say "Ctrl"
     ELSE
        @24, 0 say "    "
     ENDIF

 Source: CTRL.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT() FT_ALT()

 

FT_CAPLOCK

FT_CAPLOCK()
 Determine and optionally change the status of CapLock key

 Syntax

      FT_CAPLOCK([ <lNewSetting> ]) -> lCurrentSetting

 Arguments

     <lNewSetting> is optional and if supplied is the new setting
     for the CapLock key.  Specify .T. to turn CapLock on, or .F. to
     turn it off.

 Returns

     .T. if CapLock is set, .F. if it isn't set.  The value returned
      represents the setting in effect prior to any changes that might
      by made by <lNewSetting>.

 Description

     This function is useful if you need to know or set the status of the
     CapLock key for some reason.

 Examples

     IF FT_CAPLOCK()
        Qout( "CapLock is active" )
     ENDIF

 Source: CAPLOCK.C

 Author: Ted Means

See Also: FT_ALT() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT()

 

FT_ALT

FT_ALT()
 Determine status of the Alt key

 Syntax

      FT_ALT() -> lValue

 Arguments

     None

 Returns

     .T. if Alt key is pressed, .F. if otherwise.

 Description

     This function is useful for times you need to know whether or not the
     Alt key is pressed, such as during a MemoEdit().

 Examples

     IF FT_ALT()
        @24, 0 say "Alt"
     ELSE
        @24, 0 say "   "
     ENDIF

 Source: ALT.C

 Author: Ted Means

See Also: FT_CAPLOCK() FT_CTRL() FT_NUMLOCK() FT_PRTSCR() FT_SHIFT()