First post, by dstar
I'm having trouble with Master of Orion (the original) not recognizing that I've got an alt key held down. I posted about this last year, but I decided to try again, with a bit more research. I compiled dosbox from cvs, enabling debug and uncommenting line 500 in sdl_mapper.cpp, which logs what key it's seeing.
Based on that, I don't think it's a problem of dosbox not getting the right key -- for left and right alt, respectively, I see the following lines:
key type 2 is 38 [134 40]
key type 2 is 64 [139 6c]
(and the corresponding up events, of course). These are properly mapped to SDLK_LALT and SDLK_RALT, so it should be recognizing the keys. With usescancodes=false, the only difference is that the keycodes are 134 and 139 respectively.
This isn't a problem with the game itself, because it works fine with dosbox on a windows box.
It looks to me like the problem is somewhere after GetKeyCode, but as I don't know C++ and don't really know C, that's as far as I can trace things.
Any ideas?