c74b8c55fc
specific to X windows. I changed a few names of variables and methods to sound less X windows specific, for example in the BXKeyEntry struct the "xwinKey" field is now called "hostKey". - remove the hacks in bx_keymap_c::loadKeymap that checked that every keysym started with "XK_". Now I can still make that check, but it is done in x.cc's convertStringToXKeysym() instead. - in sdl.cc, load the keymap in specific_init function. I had to create a conversion function from SDL key names to SDLkey values. I created a table of key names and associated values, and I just do a strcmp on each name. It's not a fast algorithm obviously but this conversion only has to be done for maybe 200 keys at startup time. - added a key map file for SDL called sdl-pc-us.map. Since this has basically all the SDLK_* symbols defined, it is a good starting point if you need to make any other keymaps. - modified: gui/keymap.cc gui/keymap.h gui/sdl.cc gui/x.cc iodev/keyboard.cc - added: gui/sdlkeys.h gui/keymaps/sdl-pc-us.map |
||
---|---|---|
bochs | ||
bochs-performance | ||
CVSROOT | ||
sfsite |