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 - mouseon() make the mouse cursor visible http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mouseon()           Make the mouse cursor visible
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   proc mouseon extern

 Arguments
   None.

 Return
   None.

 Description
   The mouseon() procedure shows the mouse cursor.

   Most mouse drivers internally use a counter for the mouse state which
   is incremented whenever the mouse on function is called. If you call
   the mouseon() function repeatedly, the same number of calls to the
   mouseoff() function is required to make the mouse cursor invisible
   again (which decrements the counter). Because mouseon() uses an
   internal toggle flag, the first call to mouseoff() will make
   the mouse cursor invisible, no matter how often mouseon() was
   called before.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_mouseon
   if mouseavail()
      mouseon()
      ? "Mouse is", iifc( ismouseon(), "on", "off" )
      wait
      mouseoff()
      ? "Mouse is", iifc( ismouseon(), "on", "off" )
      wait
   else
      ? "Mouse is not available"
   endif
   endproc

   proc main
   Test_mouseon()
   endproc

See Also: mouseoff()

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