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>fg_msm_getpress</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fg_msm_getpress

Usage

   #include <fg.h>
   unsigned int fg_msm_getpress(unsigned *but_num, fg_coord_t
                                *last_x, fg_coord_t *last_y);

Description


   Get the number of presses of a button since the last call. On input
   *but_num has the button to be queried (FG_MSM_LEFT, FG_MSM_RIGHT,
   FG_MSM_MIDDLE), on output it has the number of times it has been pressed
   since the last call.  *last_x and *last_y contain the coordinate at which
   the button was last pressed.

Return Value

   Returns the current status of all the buttons.





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