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
}
}
}

View file

@ -246,7 +246,7 @@ static Bitu IRQ1_Handler(void) {
flags2&=~(0x40+0x20);//remove numlock/capslock pressed (hack for sdl only reporting states)
#endif
if (DOS_LayoutKey(scancode,flags1,flags2,flags3)) return CBRET_NONE;
LOG_MSG("key input %d %d %d %d",scancode,flags1,flags2,flags3);
//LOG_MSG("key input %d %d %d %d",scancode,flags1,flags2,flags3);
switch (scancode) {
/* First the hard ones */
case 0xfa: /* ack. Do nothing for now */