Changeset 7871 for trunk/src/user32/winkeyboard.cpp
- Timestamp:
- Feb 11, 2002, 3:03:18 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winkeyboard.cpp
r7866 r7871 1 /* $Id: winkeyboard.cpp,v 1.3 0 2002-02-11 13:48:43sandervl Exp $ */1 /* $Id: winkeyboard.cpp,v 1.31 2002-02-11 14:03:18 sandervl Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 346 346 /* 0x0B */ , 0x00 , NULL 347 347 /* 0x0C VK_CLEAR */ , PMSCAN_PAD5 , "Num 5" 348 /* 0x0D VK_RETURN */ , PMSCAN_ENTER , "Enter" // @@@PH BUG: identical to "Num Enter" !348 /* 0x0D VK_RETURN */ , PMSCAN_ENTER , "Enter" 349 349 /* 0x0E */ , 0x00 , NULL 350 350 /* 0x0F */ , 0x00 , NULL … … 591 591 }; 592 592 593 // @@PF reflect Num Enter key 594 LPSTR lpstrNumEnter = "Num Enter"; 593 595 594 596 // @@@PH … … 1310 1312 *****************************************************************************/ 1311 1313 1312 ODINFUNCTION0(UINT, GetKBCodePage)1314 UINT WIN32API GetKBCodePage() 1313 1315 { 1314 1316 return (GetOEMCP()); … … 1316 1318 //****************************************************************************** 1317 1319 //****************************************************************************** 1318 ODINFUNCTION3(int, GetKeyNameTextA, 1319 LPARAM, lParam, 1320 LPSTR, lpString, 1321 int, nSize) 1320 int WIN32API GetKeyNameTextA(LPARAM lParam, LPSTR lpString, int nSize) 1322 1321 { 1323 1322 // check the scancodes if the extended key bit is set so 1324 1323 // we can easily distinguish between "left" and "right" special keys, etc. 1325 1324 BOOL fDontCare = (lParam & WIN_KEY_DONTCARE) != 0; 1326 BOOL fExtended = (lParam & WIN_KEY_EXTENDED) != 0 ;1325 BOOL fExtended = (lParam & WIN_KEY_EXTENDED) != 0,PMExtended; 1327 1326 UCHAR ucWinScan = (lParam & 0x00ff0000) >> 16; 1328 1327 UCHAR ucWinVKey; … … 1348 1347 ucPMScan)); 1349 1348 ucWinVKey = abPMScanToWinVKey[ucPMScan][0]; 1350 dprintf(("ucPMScan=%02xh translated to ucWinVKey=%02xh\n", 1349 PMExtended = abPMScanToWinVKey[ucPMScan][1]; 1350 1351 dprintf(("ucPMScan=%02xh translated to ucWinVKey=%02xh PMExtended=%d\n", 1351 1352 ucPMScan, 1352 ucWinVKey ));1353 ucWinVKey,PMExtended)); 1353 1354 1354 1355 // Bug in Open32: … … 1360 1361 memset(lpString, 0, nSize); 1361 1362 1362 LPSTR lpstrKey = abWinVKeyToPMScan[ucWinVKey].lpstrName; 1363 LPSTR lpstrKey; 1364 lpstrKey = abWinVKeyToPMScan[ucWinVKey].lpstrName; 1365 1366 // handle Enter on Numeric Keypad here 1367 if (PMExtended) 1368 { 1369 if (ucWinVKey==VK_RETURN) lpstrKey = lpstrNumEnter; 1370 } 1371 1363 1372 if (NULL == lpstrKey) 1364 1373 { … … 1391 1400 //****************************************************************************** 1392 1401 //****************************************************************************** 1393 ODINFUNCTION3(int, GetKeyNameTextW, 1394 LPARAM, lParam, 1395 LPWSTR, lpString, 1396 int, nSize) 1402 int WIN32API GetKeyNameTextW(LPARAM lParam, LPWSTR lpString, int nSize) 1397 1403 { 1398 1404 dprintf(("USER32: GetKeyNameTextW DOES NOT WORK (not implemented)\n"));
Note:
See TracChangeset
for help on using the changeset viewer.