FreeBASIC  0.91.0
gfx_event.c
Go to the documentation of this file.
1 /* system events retrieving */
2 
3 #include "fb_gfx.h"
4 
5 
6 /*:::::*/
7 FBCALL int fb_GfxEvent(EVENT *event)
8 {
9  EVENT *e = NULL;
10 
11  if (!__fb_gfx)
12  return FB_FALSE;
13 
14  EVENT_LOCK();
17  if (event)
19  }
20  if (e && event)
21  fb_hMemCpy(event, e, sizeof(EVENT));
22  EVENT_UNLOCK();
23 
24  return e ? FB_TRUE : FB_FALSE;
25 }