Ignore:
Timestamp:
Jul 3, 2001, 3:23:32 PM (24 years ago)
Author:
sandervl
Message:

GetKeyboardState fixes

File:
1 edited

Legend:

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

    r6019 r6149  
    1 /* $Id: oslibwin.cpp,v 1.102 2001-06-15 14:07:22 sandervl Exp $ */
     1/* $Id: oslibwin.cpp,v 1.103 2001-07-03 13:23:31 sandervl Exp $ */
    22/*
    33 * Window API wrappers for OS/2
     
    817817BOOL OSLibWinGetKeyboardStateTable(unsigned char *PMKeyState)
    818818{
    819   return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)&PMKeyState, FALSE );
     819  return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)PMKeyState, FALSE );
    820820}
    821821//******************************************************************************
     
    823823BOOL OSLibWinSetKeyboardStateTable(unsigned char *PMKeyState)
    824824{
    825   return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)&PMKeyState, TRUE );
     825  return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)PMKeyState, TRUE );
     826}
     827//******************************************************************************
     828//******************************************************************************
     829#define TC_CHARTOSCANCODE          0
     830#define TC_SCANCODETOCHAR          1
     831#define TC_VIRTUALKEYTOSCANCODE    2
     832#define TC_SCANCODETOVIRTUALKEY    3
     833#define TC_SCANTOOEMSCAN           4
     834#define TC_OEMSCANTOSCAN           5
     835
     836USHORT APIENTRY WinTranslateChar2( USHORT  /* Codepage (currently ignored) */
     837                                 , PUSHORT /* Ptr to char to translate     */
     838                                 , PULONG  /* Ptr to deadkey save info     */
     839                                 , USHORT  /* Translation option (TC_xxx)  */
     840                                 , PUSHORT /* Ptr to shift state (TCF_xxx) */
     841                                 );
     842//******************************************************************************
     843//******************************************************************************
     844USHORT OSLibWinTranslateChar(USHORT usScanCode)
     845{
     846  USHORT fsShift = 0;
     847
     848  WinTranslateChar2(0, &usScanCode, NULL, TC_SCANCODETOVIRTUALKEY,
     849                    &fsShift);
     850  return usScanCode;
    826851}
    827852//******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.