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:
parent
61fcc1304d
commit
ae1be112a2
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue