1
0
Fork 0

To work or not to work...

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3564
This commit is contained in:
Peter Veenstra 2010-04-03 16:13:51 +00:00
parent 61fcc1304d
commit ae1be112a2
2 changed files with 7 additions and 1 deletions

View file

@ -2326,11 +2326,17 @@ void MAPPER_Init(void) {
if (SDL_GetModState()&KMOD_CAPS) {
for (CBindList_it bit=caps_lock_event->bindlist.begin();bit!=caps_lock_event->bindlist.end();bit++) {
(*bit)->ActivateBind(32767,true,true);
#if SDL_VERSION_ATLEAST(1, 2, 14)
(*bit)->DeActivateBind(false);
#endif
}
}
if (SDL_GetModState()&KMOD_NUM) {
for (CBindList_it bit=num_lock_event->bindlist.begin();bit!=num_lock_event->bindlist.end();bit++) {
(*bit)->ActivateBind(32767,true,true);
#if SDL_VERSION_ATLEAST(1, 2, 14)
(*bit)->DeActivateBind(false);
#endif
}
}
}