keymap.cpp File Reference


Detailed Description

Contains the code for the bx_keymap_c class used for keyboard interfacing with SDL and other device interfaces.

Id
keymap.cpp,v 1.9 2008/03/26 19:19:53 iamcamiel Exp

X-1.9 Camiel Vanderhoeven 26-MAR-2008 Fix compiler warnings.

X-1.8 Camiel Vanderhoeven 14-MAR-2008 Formatting.

X-1.4 Camiel Vanderhoeven 02-JAN-2008 Comments.

X-1.3 Camiel Vanderhoeven 10-DEC-2007 Use Configurator.

X-1.2 Camiel Vanderhoeven 7-DEC-2007 Code cleanup.

X-1.1 Camiel Vanderhoeven 6-DEC-2007 Initial version for ES40 emulator.

Definition in file keymap.cpp.

#include "../StdAfx.h"
#include "gui.h"
#include "keymap.h"
#include "../System.h"

Go to the source code of this file.

Functions

static void init_parse ()
static void init_parse_line (char *line_to_parse)
static s32 get_next_word (char *output)
static s32 get_next_keymap_line (FILE *fp, char *bxsym, char *modsym, s32 *ascii, char *hostsym)

Variables

const char * bx_key_symbol [119]
bx_keymap_cbx_keymap
static unsigned char * lineptr = NULL
static int lineCount


Function Documentation

static s32 get_next_keymap_line ( FILE *  fp,
char *  bxsym,
char *  modsym,
s32 ascii,
char *  hostsym 
) [static]

Definition at line 190 of file keymap.cpp.

References BX_PANIC, get_next_word(), and init_parse_line().

Referenced by bx_keymap_c::loadKeymap().

static s32 get_next_word ( char *  output  )  [static]

Definition at line 167 of file keymap.cpp.

Referenced by get_next_keymap_line().

static void init_parse (  )  [static]

Definition at line 149 of file keymap.cpp.

Referenced by bx_keymap_c::loadKeymap().

static void init_parse_line ( char *  line_to_parse  )  [static]

Definition at line 154 of file keymap.cpp.

Referenced by get_next_keymap_line().


Variable Documentation

const char* bx_key_symbol[119]

Definition at line 63 of file keymap.cpp.

Referenced by bx_keymap_c::convertStringToBXKey(), and bx_keymap_c::getBXKeyName().

int lineCount [static]

Definition at line 147 of file keymap.cpp.

unsigned char* lineptr = NULL [static]

Definition at line 146 of file keymap.cpp.


SourceForge.net Logo
Project space on SourceForge.net