FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_hinkey.c
Go to the documentation of this file.
1
#include "
fb.h
"
2
3
/* Builds the string to be returned by the console/gfx inkey() functions */
4
FBSTRING
*
fb_hMakeInkeyStr
(
int
key
)
5
{
6
FBSTRING
*res;
7
8
if
( key > 0xFF ) {
9
/* 2-byte extended keycode */
10
res =
fb_CHR
( 2, (key & 0xFF), (key >> 8) );
11
}
else
{
12
res =
fb_CHR
( 1, key );
13
}
14
15
return
res;
16
}
rtlib
io_hinkey.c
Generated on Thu Jan 23 2014 19:40:12 for FreeBASIC by
1.8.4