support the printscreen button properly

actorid
Jordan Milne 12 years ago
parent 403b6756f5
commit a030c03513

@ -716,7 +716,7 @@ namespace MWInput
defaultKeyBindings[A_QuickKey8] = SDLK_8;
defaultKeyBindings[A_QuickKey9] = SDLK_9;
defaultKeyBindings[A_QuickKey10] = SDLK_0;
defaultKeyBindings[A_Screenshot] = SDLK_SYSREQ;
defaultKeyBindings[A_Screenshot] = SDLK_PRINTSCREEN;
defaultKeyBindings[A_ToggleHUD] = SDLK_F12;
std::map<int, int> defaultMouseButtonBindings;

@ -892,6 +892,7 @@ namespace ICS
mKeys["RCONTROL"]= SDLK_RCTRL;
mKeys["DIVIDE"]= SDLK_SLASH;
mKeys["SYSRQ"]= SDLK_SYSREQ;
mKeys["PRNTSCRN"] = SDLK_PRINTSCREEN;
mKeys["RMENU"]= SDLK_RALT;
mKeys["PAUSE"]= SDLK_PAUSE;
mKeys["HOME"]= SDLK_HOME;

@ -345,7 +345,7 @@ namespace SFO
if(ois_equiv != mKeyMap.end())
kc = ois_equiv->second;
else
std::cerr << "Couldn't find OIS key for " << SDLK_SYSREQ << std::endl;
std::cerr << "Couldn't find OIS key for " << code << std::endl;
return kc;
}

Loading…
Cancel
Save