Changeset 7166
- Timestamp:
 - Oct 23, 2001, 10:39:05 AM (24 years ago)
 - Location:
 - trunk
 - Files:
 - 
      
- 3 edited
 
- 
          
  changelog (modified) (1 diff)
 - 
          
  src/user32/oslibmsgtranslate.cpp (modified) (2 diffs)
 - 
          
  src/user32/winkeyboard.cpp (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/changelog
r7157 r7166 1 /* $Id: changelog,v 1.1776 2001-10-22 23:34:10 phaller Exp $ */ 1 /* $Id: changelog,v 1.1777 2001-10-23 08:39:05 phaller Exp $ */ 2 3 2001-10-22: Patrick Haller <patrick.haller@innotek.de> 4 - USER32: o major improvement on keyboard handling 5 Special AltGr mapping missing yet 6 o partial fix to GetKeyNameText(), 7 two Open32 bugs remaining: 8 (injected scancodes ignored (undoc), 9 extended key bit ignored) 2 10 3 11 2001-10-22: Patrick Haller <patrick.haller@innotek.de>  - 
      
trunk/src/user32/oslibmsgtranslate.cpp
r7164 r7166 1 /* $Id: oslibmsgtranslate.cpp,v 1.6 3 2001-10-23 06:00:45phaller Exp $ */1 /* $Id: oslibmsgtranslate.cpp,v 1.64 2001-10-23 08:36:20 phaller Exp $ */ 2 2 /* 3 3 * Window message translation functions for OS/2 … … 34 34 #include "winmouse.h" 35 35 #include <pmkbdhk.h> 36 #include <pmscan.h> 36 37 37 38 #define DBG_LOCALLOG DBG_oslibmsgtranslate  - 
      
trunk/src/user32/winkeyboard.cpp
r6972 r7166 1 /* $Id: winkeyboard.cpp,v 1.1 7 2001-10-09 05:18:05phaller Exp $ */1 /* $Id: winkeyboard.cpp,v 1.18 2001-10-23 08:36:20 phaller Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 570 570 }; 571 571 572 573 572 //****************************************************************************** 574 573 //****************************************************************************** … … 587 586 winkey[VK_CONTROL] = winkey[VK_LCONTROL] | winkey[VK_RCONTROL]; 588 587 winkey[VK_MENU] = winkey[VK_LMENU] | winkey[VK_RMENU]; 588 } 589 //****************************************************************************** 590 //****************************************************************************** 591 BYTE KeyTranslateWinVKeyToPMScan(BYTE bWinScan) 592 { 593 // Note: array size of 256, so the BYTE value can't overflow 594 595 // translate scancode to vkey 596 BYTE bWinVKey = MapVirtualKeyA(bWinScan ,3); 597 return abWinVKeyToPMScan[bWinVKey]; 589 598 } 590 599 //****************************************************************************** … … 942 951 int, nSize) 943 952 { 944 return O32_GetKeyNameText(lParam,lpString,nSize); 953 // Note: Open32 expects PM Scancodes, NOT Winscancodes. 954 UCHAR ucPMScanCode = KeyTranslateWinVKeyToPMScan( (lParam & 0x00ff0000) >> 16); 955 956 // switch the bits 957 lParam &= 0xFF00FFFF; 958 lParam |= (ucPMScanCode << 16); 959 960 // @@@PH 961 // Bugs in Open32: 962 // 1 - the "extended key bit" is not taken into account 963 // 2 - special injected scancodes (0x21d for Ctrl for AltGr) skipped 964 965 int result = O32_GetKeyNameText(lParam,lpString,nSize); 966 if (result) 967 dprintf(("keyname=[%s]\n", 968 lpString)); 969 return result; 945 970 } 946 971 //******************************************************************************  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  