File: bmouse.h

package info (click to toggle)
pluto-find-orb 0.0~git20180227-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,668 kB
  • sloc: cpp: 30,743; makefile: 263
file content (24 lines) | stat: -rw-r--r-- 628 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#define BMOUSE struct bmouse

#ifdef __cplusplus
extern "C" {            /* Assume C declarations for C++ */
#endif

BMOUSE
   {
   unsigned xmin, xmax, ymin, ymax, x, y, sensitivity, prev_x, prev_y;
   unsigned pressed, released, accum_released, button;
   int dx, dy, diff_mode, mouse_installed;
   unsigned pressed_x, pressed_y;
   unsigned private_unsigned[2];
   int char_code;
   };

#define NO_MOUSE_FOUND -1

int init_mouse( BMOUSE *b);
int mouse_read( BMOUSE *b);
int mouse_set_position( BMOUSE *b, unsigned x, unsigned y);
#ifdef __cplusplus
}                       /* End of extern "C"  */
#endif   /* __cplusplus */