Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Foxlib v1.0 - <b>mousetyp</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
MOUSETYP

Syntax:                 MOUSETYP

Use:                    To determine the mouse type.

Parameters:             MOUSE

Returns:                The first character in the sending parameter will
                        have the mouse type if the mouse driver is present
                        in memory, and garbage if the mouse driver is not
                        present.  If you did not pass the parameter
                        correctly (e.g. FOXLIB = "ZOUSE"), your sending
                        parameter will be unchanged.

Example:                . load c:\FOXLIB\mousedrv
                        . FOXLIB = "MOUSE"
                        . call mousedrv with FOXLIB
                        . ?substr(FOXLIB,1,1) = "Y"
                        .T.
                        . rele modu mousedrv

                        . load c:\FOXLIB\mousetyp
                        . FOXLIB = "MOUSE"
                        . call mousetyp with FOXLIB
                        . ?asc(substr(FOXLIB,1,1))
                        . 2
                        . rele modu mousetyp

                        From this example, the mouse type is serial mouse.
                        Below is a table of all possible outcomes.

                        1 = Bus mouse
                        2 = Serial mouse
                        3 = InPort mouse
                        4 = PS/2 mouse
                        5 = HP mouse

Notes:                  First determine if the mouse driver has been loaded
                        into memory using the FOXLIB command "MOUSEDRV"
                        before using this command.  Otherwise, you will get
                        unwanted results.

See Also: MOUSEDRV MOUSEVER MOUSELNG MOUSERHT MOUSELFT MOUSESHW MOUSEHID MOUSECTR

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