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 - mouserestore() restore a previously saved mouse state http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 mouserestore()      Restore a previously saved mouse state
------------------------------------------------------------------------------
 Declaration
   mouse.hdr

 Syntax
   proc mouserestore extern
   param value ulong pSaveAddress

 Arguments
   pSaveAddress is the saved mouse state buffer.

 Return
   None.

 Description
   The mouserestore() procedure restores a previously saved mouse driver
   state. The pSaveAddress parameter expects an internal memory pointer
   which was created by mousesave() before.

 Example
   #define EXAMPLE_MOUSE
   #include example.hdr

   proc Test_mouserestore
   vardef
      ulong pMouseState
   enddef
   if mouseavail()
      clear
      mouseon()
      pMouseState := mousesave()
      // here run external program that installs a different mouse handler
      mouserestore( pMouseState )
   else
      ? "Mouse is not available"
   endif
   endproc

   proc main
   Test_mouserestore()
   endproc

See Also: mousesave()

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