Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>msm_getpress</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
msm_getpress

Usage

   #include <msmouse.h>
   int msm_getpress(unsigned *count, unsigned *curposx, unsigned
   *curposy);

Description

   Get button press information. On entering the routine count should point

   to an integer designating which button we require information about (0 =
   left button, 1 = right button, 2 = middle button). The function places
   the number of times that the button has been pressed since the last call
   to msm_getpress into count and the mouse position at the last press into
   curposx and curposy. Values can be in the range 0 to 32767.

Return Value

   It returns the state of all of the buttons as a bit pattern.

       Bit 0:  left button (1 == down, 0 == up)
       Bit 1:  right button
       Bit 2:  middle button
       All other bits should be ignored.

See Also

   msm_getrelease




See Also: msm_getrelease

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