Initializing the Mouse

The fg_mouseini() function initializes Fastgraph's mouse environment. It has no parameters and returns 1 if the mouse is available, and -1 if not. If fg_mouseini() can't initialize the mouse, none of Fastgraph's other mouse support functions will have any effect. You do not need to call fg_mouseini() if your program just uses Windows mouse functions.

In Fastgraph for DOS, the fg_mouseini() return value is equal to the number of buttons on the mouse. In Windows, there is no reliable way to determine the number of mouse buttons, so fg_mouseini() returns 1 if the mouse is available. This shouldn't be too much of a problem because Windows programs seldom, if ever, use the middle mouse button for anything.

<< Prev

Next >>

Fastgraph Home Page


copyright 2001 Ted Gruber Software, Inc.