FreeBASIC  0.91.0
gfx_multikey.c
Go to the documentation of this file.
1 /* MULTIKEY function for multiple keypresses detection. */
2 
3 #include "fb_gfx.h"
4 
5 
6 /*:::::*/
7 int fb_GfxMultikey(int scancode)
8 {
9  int result = FB_FALSE;
10 
11  if ((__fb_gfx) && (scancode >= 0) && (scancode < 128)) {
12  DRIVER_LOCK();
13  result = (__fb_gfx->key[scancode]? FB_TRUE : FB_FALSE);
14  DRIVER_UNLOCK();
15  }
16 
17  return result;
18 }