Changeset 8474 for trunk/src/user32/oslibmsgtranslate.cpp
- Timestamp:
- May 23, 2002, 9:13:00 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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)
Note:
See TracChangeset
for help on using the changeset viewer.