FreeBASIC
0.91.0
|
Go to the source code of this file.
Data Structures | |
struct | _FB_KEY_CODES |
struct | _FB_KEY_LIST_ENTRY |
Macros | |
#define | KEY_BUFFER_LEN 512 |
#define | FB_KEY_LIST_SIZE (sizeof(fb_ext_key_entries)/sizeof(FB_KEY_LIST_ENTRY)) |
#define | FB_KEY_CODES_SIZE (sizeof(fb_asc_key_codes)/sizeof(FB_KEY_CODES)) |
Typedefs | |
typedef struct _FB_KEY_CODES | FB_KEY_CODES |
typedef struct _FB_KEY_LIST_ENTRY | FB_KEY_LIST_ENTRY |
Functions | |
static void | fb_hConsolePostKey (int key, const KEY_EVENT_RECORD *key_event) |
int | fb_hConsoleInputBufferChanged (void) |
static int | fb_hConsoleGetKeyEx (int full, int allow_remove) |
int | fb_hConsoleGetKey (int full) |
int | fb_hConsolePeekKey (int full) |
void | fb_hConsolePutBackEvents (void) |
static void | fb_hConsoleProcessKeyEvent (KEY_EVENT_RECORD *event) |
static BOOL WINAPI | fb_hConsoleHandlerRoutine (DWORD dwCtrlType) |
static void | fb_hExitControlHandler (void) |
static void | fb_hInitControlHandler (void) |
int | fb_ConsoleProcessEvents (void) |
int | fb_hConsoleTranslateKey (char AsciiChar, WORD wVsCode, WORD wVkCode, DWORD dwControlKeyState, int bEnhancedKeysOnly) |
Translates an ASCII character, Virtual scan code and Virtual key code to a single QB-compatible keyboard code. More... | |
Variables | |
static int | key_buffer [KEY_BUFFER_LEN] |
static size_t | key_head = 0 |
static size_t | key_tail = 0 |
static INPUT_RECORD | input_events [KEY_BUFFER_LEN] |
static unsigned | key_scratch_pad = 0 |
static int | key_buffer_changed = FALSE |
static const FB_KEY_LIST_ENTRY | fb_ext_key_entries [] |
static const FB_KEY_CODES | fb_asc_key_codes [] |
static int | control_handler_inited = FALSE |
#define FB_KEY_CODES_SIZE (sizeof(fb_asc_key_codes)/sizeof(FB_KEY_CODES)) |
Definition at line 157 of file io_input.c.
#define FB_KEY_LIST_SIZE (sizeof(fb_ext_key_entries)/sizeof(FB_KEY_LIST_ENTRY)) |
Definition at line 41 of file io_input.c.
#define KEY_BUFFER_LEN 512 |
Definition at line 7 of file io_input.c.
typedef struct _FB_KEY_CODES FB_KEY_CODES |
typedef struct _FB_KEY_LIST_ENTRY FB_KEY_LIST_ENTRY |
int fb_ConsoleProcessEvents | ( | void | ) |
Definition at line 386 of file io_input.c.
int fb_hConsoleGetKey | ( | int | full) |
Definition at line 229 of file io_input.c.
|
static |
Definition at line 198 of file io_input.c.
Definition at line 347 of file io_input.c.
int fb_hConsoleInputBufferChanged | ( | void | ) |
int fb_hConsolePeekKey | ( | int | full) |
Definition at line 234 of file io_input.c.
|
static |
|
static |
Definition at line 266 of file io_input.c.
void fb_hConsolePutBackEvents | ( | void | ) |
Definition at line 239 of file io_input.c.
int fb_hConsoleTranslateKey | ( | char | AsciiChar, |
WORD | wVsCode, | ||
WORD | wVkCode, | ||
DWORD | dwControlKeyState, | ||
int | bEnhancedKeysOnly | ||
) |
Translates an ASCII character, Virtual scan code and Virtual key code to a single QB-compatible keyboard code.
Definition at line 434 of file io_input.c.
|
static |
Definition at line 368 of file io_input.c.
|
static |
Definition at line 375 of file io_input.c.
|
static |
Definition at line 366 of file io_input.c.
|
static |
Definition at line 43 of file io_input.c.
|
static |
Definition at line 26 of file io_input.c.
|
static |
Definition at line 10 of file io_input.c.
|
static |
Definition at line 8 of file io_input.c.
|
static |
Definition at line 12 of file io_input.c.
|
static |
Definition at line 9 of file io_input.c.
|
static |
Definition at line 11 of file io_input.c.
|
static |
Definition at line 9 of file io_input.c.