- Timestamp:
- May 23, 2002, 9:13:00 AM (23 years ago)
- Location:
- trunk/src/user32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/HOOK.CPP
r8202 r8474 1 /* $Id: HOOK.CPP,v 1.3 7 2002-04-07 14:36:59sandervl Exp $ */1 /* $Id: HOOK.CPP,v 1.38 2002-05-23 07:13:00 sandervl Exp $ */ 2 2 3 3 /* … … 835 835 // Note: ALT seems to stick sometimes 836 836 // Note: ALTGR can't be queried 837 BOOL fAltDown = GetAsyncKeyState(VK_LMENU) ;837 BOOL fAltDown = GetAsyncKeyState(VK_LMENU) | GetAsyncKeyState(VK_RMENU); 838 838 839 839 // this bit indicates if ALT was held -
trunk/src/user32/oslibmsgtranslate.cpp
r8380 r8474 1 /* $Id: oslibmsgtranslate.cpp,v 1.8 6 2002-05-07 16:15:30 sandervl Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.87 2002-05-23 07:13:00 sandervl Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 628 628 winMsg->lParam = winMsg->lParam | WIN_KEY_EXTENDED; 629 629 630 //@PF PM does not add KC_ALT to right alt but win32 does it 631 if (WinGetKeyState(HWND_DESKTOP, VK_ALTGRAF) & 0x8000) flags |= KC_ALT; 630 632 #if 0 631 633 //TODO … … 637 639 638 640 #ifdef ALTGR_HACK 639 641 640 642 if (usPMScanCode == PMSCAN_ALTRIGHT) 641 643 { … … 694 696 // check for a lonesome ALT key ... 695 697 if ( (flags & KC_LONEKEY) && 696 ( winMsg->wParam == VK_LMENU_W) )698 ((winMsg->wParam == VK_LMENU_W) || (winMsg->wParam == VK_RMENU_W)) ) 697 699 { 698 700 winMsg->message = WINWM_SYSKEYUP; … … 762 764 winMsg->message = WINWM_SYSKEYUP; 763 765 winMsg->lParam |= WIN_KEY_PREVSTATE; 764 winMsg->lParam |= WIN_KEY_ALTHELD; 766 // No ALTHELD for Alt itself ;) 767 winMsg->lParam |= WIN_KEY_ALTHELD; 765 768 winMsg->lParam |= 1 << 31; // bit 31, transition state, always 1 for WM_KEYUP 766 769 } … … 1017 1020 1018 1021 extramsg.lParam = msg->lParam & 0x00FFFFFF; 1019 if (fl & KC_ALT)1022 if ((fl & KC_ALT) || (msg->lParam & WIN_KEY_ALTHELD)) 1020 1023 extramsg.lParam |= WIN_KEY_ALTHELD; 1021 1024 if(fl & KC_PREVDOWN) -
trunk/src/user32/winkeyboard.cpp
r8365 r8474 1 /* $Id: winkeyboard.cpp,v 1.3 3 2002-05-01 08:03:05sandervl Exp $ */1 /* $Id: winkeyboard.cpp,v 1.34 2002-05-23 07:13:00 sandervl Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 118 118 /* 0x34 PMSCAN_PERIOD */ , VK_PERIOD ,FALSE 119 119 /* 0x35 PMSCAN_SLASH */ , VK_SLASH ,FALSE 120 /* 0x36 PMSCAN_SHIFTRIGHT */ , VK_RSHIFT , TRUE120 /* 0x36 PMSCAN_SHIFTRIGHT */ , VK_RSHIFT ,FALSE 121 121 /* 0x37 PMSCAN_PADASTERISK */ , VK_MULTIPLY ,FALSE 122 122 /* 0x38 PMSCAN_ALTLEFT */ , VK_LMENU ,FALSE … … 1401 1401 case KEYOVERLAYSTATE_UP: 1402 1402 return 0x0000; 1403 } 1403 } 1404 if (nVirtKey == VK_MENU) return O32_GetKeyState(VK_LMENU) | O32_GetKeyState(VK_RMENU); 1404 1405 return O32_GetKeyState(nVirtKey); 1405 1406 } … … 1423 1424 return 0x0000; 1424 1425 } 1426 if (nVirtKey == VK_MENU) return O32_GetKeyState(VK_LMENU) | O32_GetKeyState(VK_RMENU); 1425 1427 return O32_GetAsyncKeyState(nVirtKey); 1426 1428 }
Note:
See TracChangeset
for help on using the changeset viewer.