FreeBASIC  0.91.0
hook_getmouse.c
Go to the documentation of this file.
1 #include "fb.h"
2 
3 FBCALL int fb_GetMouse( int *x, int *y, int *z, int *buttons, int *clip )
4 {
5  int res;
6 
7  FB_LOCK();
8 
10  res = __fb_ctx.hooks.getmouseproc( x, y, z, buttons, clip );
11  else
12  res = fb_ConsoleGetMouse( x, y, z, buttons, clip );
13 
14  FB_UNLOCK();
15 
16  return res;
17 }