Ignore:
Timestamp:
Jul 31, 2003, 5:58:58 PM (22 years ago)
Author:
sandervl
Message:

KOMH: DBCS updates/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winkeyboard.cpp

    r9974 r10190  
    1 /* $Id: winkeyboard.cpp,v 1.42 2003-04-02 12:58:02 sandervl Exp $ */
     1/* $Id: winkeyboard.cpp,v 1.43 2003-07-31 15:56:48 sandervl Exp $ */
    22/*
    33 * Win32 <-> PM key translation
     
    10561056BOOL WIN32API SetKeyboardState(PBYTE lpKeyState)
    10571057{
    1058   dprintf(("USER32: SetKeyboardState %x not implemented", lpKeyState));
    1059   return(TRUE);
     1058   dprintf(("USER32: SetKeyboardState %x not implemented", lpKeyState));
     1059
     1060   return(TRUE);
    10601061}
    10611062/***********************************************************************
     
    12041205       if(lpbKeyState[VK_LSHIFT]   & 0x80) shiftstate |= TCF_LSHIFT;
    12051206       if(lpbKeyState[VK_RSHIFT]   & 0x80) shiftstate |= TCF_RSHIFT;
     1207       else
     1208       if(lpbKeyState[VK_SHIFT]    & 0x80) shiftstate |= TCF_LSHIFT;
     1209
    12061210       if(lpbKeyState[VK_LCONTROL] & 0x80) shiftstate |= TCF_LCONTROL;
    12071211       if(lpbKeyState[VK_RCONTROL] & 0x80) shiftstate |= TCF_RCONTROL;
     1212       else
     1213       if(lpbKeyState[VK_CONTROL]  & 0x80) shiftstate |= TCF_LCONTROL;
     1214
    12081215       if(lpbKeyState[VK_LMENU]    & 0x80) shiftstate |= TCF_ALT;
    12091216       if(lpbKeyState[VK_RMENU]    & 0x80) shiftstate |= TCF_ALTGR;
     1217       else
     1218       if(lpbKeyState[VK_MENU]     & 0x80) shiftstate |= TCF_ALT;
     1219
    12101220       if(lpbKeyState[VK_CAPITAL]  & 1)    shiftstate |= TCF_CAPSLOCK;
    12111221       if(lpbKeyState[VK_NUMLOCK]  & 1)    shiftstate |= TCF_NUMLOCK;
     
    16151625    break;
    16161626
     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
    16171644    case 1:
    16181645    case 3:
Note: See TracChangeset for help on using the changeset viewer.