Changeset 10190 for trunk/src/user32/winkeyboard.cpp
- Timestamp:
- Jul 31, 2003, 5:58:58 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/winkeyboard.cpp
r9974 r10190 1 /* $Id: winkeyboard.cpp,v 1.4 2 2003-04-02 12:58:02sandervl Exp $ */1 /* $Id: winkeyboard.cpp,v 1.43 2003-07-31 15:56:48 sandervl Exp $ */ 2 2 /* 3 3 * Win32 <-> PM key translation … … 1056 1056 BOOL WIN32API SetKeyboardState(PBYTE lpKeyState) 1057 1057 { 1058 dprintf(("USER32: SetKeyboardState %x not implemented", lpKeyState)); 1059 return(TRUE); 1058 dprintf(("USER32: SetKeyboardState %x not implemented", lpKeyState)); 1059 1060 return(TRUE); 1060 1061 } 1061 1062 /*********************************************************************** … … 1204 1205 if(lpbKeyState[VK_LSHIFT] & 0x80) shiftstate |= TCF_LSHIFT; 1205 1206 if(lpbKeyState[VK_RSHIFT] & 0x80) shiftstate |= TCF_RSHIFT; 1207 else 1208 if(lpbKeyState[VK_SHIFT] & 0x80) shiftstate |= TCF_LSHIFT; 1209 1206 1210 if(lpbKeyState[VK_LCONTROL] & 0x80) shiftstate |= TCF_LCONTROL; 1207 1211 if(lpbKeyState[VK_RCONTROL] & 0x80) shiftstate |= TCF_RCONTROL; 1212 else 1213 if(lpbKeyState[VK_CONTROL] & 0x80) shiftstate |= TCF_LCONTROL; 1214 1208 1215 if(lpbKeyState[VK_LMENU] & 0x80) shiftstate |= TCF_ALT; 1209 1216 if(lpbKeyState[VK_RMENU] & 0x80) shiftstate |= TCF_ALTGR; 1217 else 1218 if(lpbKeyState[VK_MENU] & 0x80) shiftstate |= TCF_ALT; 1219 1210 1220 if(lpbKeyState[VK_CAPITAL] & 1) shiftstate |= TCF_CAPSLOCK; 1211 1221 if(lpbKeyState[VK_NUMLOCK] & 1) shiftstate |= TCF_NUMLOCK; … … 1615 1625 break; 1616 1626 1627 case 0: 1628 { 1629 UINT ret; 1630 if( uCode >= VK_A && uCode <= VK_Z) { 1631 ret = OSLibWinTranslateChar('A' + uCode - VK_A, TC_CHARTOSCANCODE, 0); 1632 dprintf(("MapVirtualKeyA %x (%c) -> %x", uCode, 'A' + uCode - VK_A, ret)); 1633 return ret; 1634 } 1635 else 1636 if( uCode >= VK_0 && uCode <= VK_0) { 1637 ret = OSLibWinTranslateChar('0' + uCode - VK_0, TC_CHARTOSCANCODE, 0); 1638 dprintf(("MapVirtualKeyA %x (%c) -> %x", uCode, '0' + uCode - VK_0, ret)); 1639 return ret; 1640 } 1641 break; 1642 } 1643 1617 1644 case 1: 1618 1645 case 3:
Note:
See TracChangeset
for help on using the changeset viewer.