Ignore:
Timestamp:
Feb 16, 2003, 4:31:12 PM (23 years ago)
Author:
sandervl
Message:

ToAscii, GetKeyState, GetAsyncKeyState & GetKeyboardState fixes

File:
1 edited

Legend:

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

    r9694 r9810  
    1 /* $Id: oslibwin.cpp,v 1.138 2003-01-20 12:09:47 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.139 2003-02-16 15:31:10 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    315315//******************************************************************************
    316316//******************************************************************************
    317 LONG OSLibWinGetPhysKeyState(LONG scan)
    318 {
    319     return WinGetPhysKeyState(HWND_DESKTOP,scan);       
    320 }
    321 //******************************************************************************
    322 //******************************************************************************
    323317BOOL OSLibWinSetFocus(HWND hwndDeskTop,HWND hwndNewFocus, BOOL activate)
    324318{
     
    952946                      WinQuerySysValue( HWND_DESKTOP, SV_CYICON)));
    953947  return TRUE;
    954 }
    955 //******************************************************************************
    956 //******************************************************************************
    957 BOOL OSLibWinGetKeyboardStateTable(unsigned char *PMKeyState)
    958 {
    959   return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)PMKeyState, FALSE );
    960 }
    961 //******************************************************************************
    962 //******************************************************************************
    963 BOOL OSLibWinSetKeyboardStateTable(unsigned char *PMKeyState)
    964 {
    965   return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)PMKeyState, TRUE );
    966 }
    967 //******************************************************************************
    968 //******************************************************************************
    969 USHORT APIENTRY WinTranslateChar2( USHORT  /* Codepage (currently ignored) */
    970                                  , PUSHORT /* Ptr to char to translate     */
    971                                  , PULONG  /* Ptr to deadkey save info     */
    972                                  , USHORT  /* Translation option (TC_xxx)  */
    973                                  , PUSHORT /* Ptr to shift state (TCF_xxx) */
    974                                  );
    975 //******************************************************************************
    976 //******************************************************************************
    977 USHORT OSLibWinTranslateChar(USHORT usScanCode, ULONG type, USHORT shiftstate)
    978 {
    979   USHORT usResult;
    980   USHORT sel = GetFS();
    981 
    982   usResult = WinTranslateChar2(0, &usScanCode, NULL, type, &shiftstate);
    983   SetFS(sel);
    984   return usScanCode;
    985948}
    986949//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.