Changeset 6149 for trunk/src/user32/oslibwin.cpp
- Timestamp:
- Jul 3, 2001, 3:23:32 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/oslibwin.cpp
r6019 r6149 1 /* $Id: oslibwin.cpp,v 1.10 2 2001-06-15 14:07:22sandervl Exp $ */1 /* $Id: oslibwin.cpp,v 1.103 2001-07-03 13:23:31 sandervl Exp $ */ 2 2 /* 3 3 * Window API wrappers for OS/2 … … 817 817 BOOL OSLibWinGetKeyboardStateTable(unsigned char *PMKeyState) 818 818 { 819 return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE) &PMKeyState, FALSE );819 return WinSetKeyboardStateTable(HWND_DESKTOP, (PBYTE)PMKeyState, FALSE ); 820 820 } 821 821 //****************************************************************************** … … 823 823 BOOL OSLibWinSetKeyboardStateTable(unsigned char *PMKeyState) 824 824 { 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 836 USHORT 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 //****************************************************************************** 844 USHORT OSLibWinTranslateChar(USHORT usScanCode) 845 { 846 USHORT fsShift = 0; 847 848 WinTranslateChar2(0, &usScanCode, NULL, TC_SCANCODETOVIRTUALKEY, 849 &fsShift); 850 return usScanCode; 826 851 } 827 852 //******************************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.