Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

winkeyboard.cpp File Reference

#include <odin.h>
#include <odinwrap.h>
#include <os2sel.h>
#include <os2win.h>
#include <string.h>
#include <stdio.h>
#include <winkeyboard.h>
#include "oslibwin.h"
#include <heapstring.h>
#include <pmscan.h>
#include <winscan.h>
#include <winuser32.h>
#include "initterm.h"
#include "dbglocal.h"

Include dependency graph for winkeyboard.cpp:

Include dependency graph

Go to the source code of this file.

Compounds

struct  tagWinVKeyToPMScan

Defines

#define DBG_LOCALLOG   DBG_winkeyboard

Typedefs

typedef tagWinVKeyToPMScan WINVKEYTOPMSCAN
typedef tagWinVKeyToPMScanPWINVKEYTOPMSCAN

Functions

BOOL _System _O32_GetKeyboardState (PBYTE lpKeyState)
BOOL O32_GetKeyboardState (PBYTE lpKeyState)
void WINAPI KeyTranslatePMToWinBuf (BYTE *pmkey, BYTE *winkey, int nrkeys)
BYTE KeyTranslateWinVKeyToPMScan (BYTE bWinVKey, BOOL fExtended)
void KeyTranslatePMScanToWinVKey (BYTE bPMScan, BOOL bNumLock, PBYTE pbWinVKey, WORD *pwWinScan, PBOOL pfExtended)
BYTE KeyTranslateWinScanToPMScan (BYTE bWinScan, BOOL fExtended)
int WINAPI GetKeyboardType (int nTypeFlag)
BOOL WINAPI GetKeyboardState (PBYTE lpKeyState)
BOOL WINAPI SetKeyboardState (PBYTE lpKeyState)
HKL WINAPI GetKeyboardLayout (DWORD dwLayout)
INT WINAPI GetKeyboardLayoutNameA (LPSTR pwszKLID)
INT WINAPI GetKeyboardLayoutNameW (LPWSTR pwszKLID)
INT WINAPI GetKeyboardLayoutList (INT nBuff, HKL *layouts)
int WINAPI ToAscii (UINT uVirtKey, UINT uScanCode, PBYTE lpbKeyState, LPWORD lpwTransKey, UINT fuState)
int WINAPI ToAsciiEx (UINT uVirtKey, UINT uScanCode, PBYTE lpbKeyState, LPWORD lpwTransKey, UINT fuState, HKL hkl)
int WINAPI ToUnicode (UINT uVirtKey, UINT uScanCode, PBYTE lpKeyState, LPWSTR pwszBuff, int cchBuff, UINT wFlags)
UINT WINAPI GetKBCodePage (void)
int WINAPI GetKeyNameTextA (LPARAM lParam, LPSTR lpString, int nSize)
int WINAPI GetKeyNameTextW (LPARAM lParam, LPWSTR lpString, int nSize)
SHORT WINAPI GetKeyState (int nVirtKey)
WORD WINAPI GetAsyncKeyState (INT nVirtKey)
UINT WINAPI MapVirtualKeyA (UINT uCode, UINT uMapType)
UINT WINAPI MapVirtualKeyW (UINT uCode, UINT uMapType)
UINT WINAPI MapVirtualKeyExA (UINT uCode, UINT uMapType, HKL dwhkl)
UINT WINAPI MapVirtualKeyExW (UINT uCode, UINT uMapType, HKL dwhkl)
DWORD WINAPI OemKeyScan (WORD wOemChar)
BOOL WINAPI RegisterHotKey (HWND hwnd, int idHotKey, UINT fuModifiers, UINT uVirtKey)
BOOL WINAPI UnregisterHotKey (HWND hwnd, int idHotKey)
WORD WINAPI VkKeyScanA (char ch)
WORD WINAPI VkKeyScanW (WCHAR wch)
WORD WINAPI VkKeyScanExW (WCHAR uChar, HKL hkl)
WORD WINAPI VkKeyScanExA (CHAR uChar, HKL hkl)
void WINAPI keybd_event (BYTE bVk, BYTE bScan, DWORD dwFlags, DWORD dwExtraInfo)
HKL WINAPI LoadKeyboardLayoutA (LPCSTR pwszKLID, UINT Flags)
HKL WINAPI LoadKeyboardLayoutW (LPCWSTR pwszKLID, UINT Flags)
BOOL WINAPI ActivateKeyboardLayout (HKL hkl, UINT fuFlags)
BOOL WINAPI UnloadKeyboardLayout (HKL hkl)
void WINAPI KeySetOverlayKeyState (int nVirtKey, char nState)

Variables

char arrchOverlayKeyState [256] = {0}
BYTE abPMScanToWinVKey [256][2]
WINVKEYTOPMSCAN abWinVKeyToPMScan [256]
BYTE abPMScanToWinScan [256][2]


Define Documentation

#define DBG_LOCALLOG   DBG_winkeyboard
 

Definition at line 26 of file winkeyboard.cpp.


Typedef Documentation

typedef struct tagWinVKeyToPMScan WINVKEYTOPMSCAN
 

typedef struct tagWinVKeyToPMScan * PWINVKEYTOPMSCAN
 


Function Documentation

BOOL _System _O32_GetKeyboardState PBYTE    lpKeyState
 

Referenced by O32_GetKeyboardState().

BOOL O32_GetKeyboardState PBYTE    lpKeyState [inline]
 

Definition at line 50 of file winkeyboard.cpp.

void WINAPI KeyTranslatePMToWinBuf BYTE *    pmkey,
BYTE *    winkey,
int    nrkeys
 

Definition at line 866 of file winkeyboard.cpp.

Referenced by GetKeyboardState().

BYTE KeyTranslateWinVKeyToPMScan BYTE    bWinVKey,
BOOL    fExtended
 

Definition at line 879 of file winkeyboard.cpp.

void KeyTranslatePMScanToWinVKey BYTE    bPMScan,
BOOL    bNumLock,
PBYTE    pbWinVKey,
WORD *    pwWinScan,
PBOOL    pfExtended
 

Definition at line 915 of file winkeyboard.cpp.

Referenced by OS2ToWinMsgTranslate().

BYTE KeyTranslateWinScanToPMScan BYTE    bWinScan,
BOOL    fExtended
 

Definition at line 933 of file winkeyboard.cpp.

Referenced by GetKeyNameTextA(), and MapVirtualKeyA().

int WINAPI GetKeyboardType int    nTypeFlag
 

Definition at line 970 of file winkeyboard.cpp.

BOOL WINAPI GetKeyboardState PBYTE    lpKeyState
 

Definition at line 977 of file winkeyboard.cpp.

BOOL WINAPI SetKeyboardState PBYTE    lpKeyState
 

Definition at line 1012 of file winkeyboard.cpp.

HKL WINAPI GetKeyboardLayout DWORD    dwLayout
 

Definition at line 1026 of file winkeyboard.cpp.

Referenced by GetKeyboardLayoutList(), and GetKeyboardLayoutNameA().

INT WINAPI GetKeyboardLayoutNameA LPSTR    pwszKLID
 

Definition at line 1049 of file winkeyboard.cpp.

Referenced by GetKeyboardLayoutNameW().

INT WINAPI GetKeyboardLayoutNameW LPWSTR    pwszKLID
 

Definition at line 1073 of file winkeyboard.cpp.

INT WINAPI GetKeyboardLayoutList INT    nBuff,
HKL *    layouts
 

Definition at line 1095 of file winkeyboard.cpp.

int WINAPI ToAscii UINT    uVirtKey,
UINT    uScanCode,
PBYTE    lpbKeyState,
LPWORD    lpwTransKey,
UINT    fuState
 

Definition at line 1135 of file winkeyboard.cpp.

Referenced by ToAsciiEx().

int WINAPI ToAsciiEx UINT    uVirtKey,
UINT    uScanCode,
PBYTE    lpbKeyState,
LPWORD    lpwTransKey,
UINT    fuState,
HKL    hkl
 

Definition at line 1243 of file winkeyboard.cpp.

int WINAPI ToUnicode UINT    uVirtKey,
UINT    uScanCode,
PBYTE    lpKeyState,
LPWSTR    pwszBuff,
int    cchBuff,
UINT    wFlags
 

Definition at line 1289 of file winkeyboard.cpp.

UINT WINAPI GetKBCodePage void   
 

Definition at line 1312 of file winkeyboard.cpp.

int WINAPI GetKeyNameTextA LPARAM    lParam,
LPSTR    lpString,
int    nSize
 

Definition at line 1321 of file winkeyboard.cpp.

int WINAPI GetKeyNameTextW LPARAM    lParam,
LPWSTR    lpString,
int    nSize
 

Definition at line 1396 of file winkeyboard.cpp.

SHORT WINAPI GetKeyState int    nVirtKey
 

Definition at line 1406 of file winkeyboard.cpp.

Referenced by DIALOG_IsDialogMessage(), EDIT_WM_Char(), EDIT_WM_KeyDown(), KBD_translate_accelerator(), LISTBOX_HandleKeyDown(), and TranslateMDISysAccel().

WORD WINAPI GetAsyncKeyState INT    nVirtKey
 

Definition at line 1428 of file winkeyboard.cpp.

UINT WINAPI MapVirtualKeyA UINT    uCode,
UINT    uMapType
 

Definition at line 1451 of file winkeyboard.cpp.

Referenced by MapVirtualKeyExA(), OemKeyScan(), and SendInput().

UINT WINAPI MapVirtualKeyW UINT    uCode,
UINT    uMapType
 

Definition at line 1478 of file winkeyboard.cpp.

Referenced by MapVirtualKeyExW(), and SendInput().

UINT WINAPI MapVirtualKeyExA UINT    uCode,
UINT    uMapType,
HKL    dwhkl
 

Definition at line 1505 of file winkeyboard.cpp.

UINT WINAPI MapVirtualKeyExW UINT    uCode,
UINT    uMapType,
HKL    dwhkl
 

Definition at line 1531 of file winkeyboard.cpp.

DWORD WINAPI OemKeyScan WORD    wOemChar
 

Definition at line 1552 of file winkeyboard.cpp.

BOOL WINAPI RegisterHotKey HWND    hwnd,
int    idHotKey,
UINT    fuModifiers,
UINT    uVirtKey
 

Definition at line 1579 of file winkeyboard.cpp.

BOOL WINAPI UnregisterHotKey HWND    hwnd,
int    idHotKey
 

Definition at line 1590 of file winkeyboard.cpp.

WORD WINAPI VkKeyScanA char    ch
 

Definition at line 1603 of file winkeyboard.cpp.

Referenced by OemKeyScan(), and VkKeyScanExA().

WORD WINAPI VkKeyScanW WCHAR    wch
 

Definition at line 1610 of file winkeyboard.cpp.

Referenced by VkKeyScanExW().

WORD WINAPI VkKeyScanExW WCHAR    uChar,
HKL    hkl
 

Definition at line 1633 of file winkeyboard.cpp.

WORD WINAPI VkKeyScanExA CHAR    uChar,
HKL    hkl
 

Definition at line 1656 of file winkeyboard.cpp.

void WINAPI keybd_event BYTE    bVk,
BYTE    bScan,
DWORD    dwFlags,
DWORD    dwExtraInfo
 

Definition at line 1684 of file winkeyboard.cpp.

HKL WINAPI LoadKeyboardLayoutA LPCSTR    pwszKLID,
UINT    Flags
 

Definition at line 1717 of file winkeyboard.cpp.

HKL WINAPI LoadKeyboardLayoutW LPCWSTR    pwszKLID,
UINT    Flags
 

Definition at line 1744 of file winkeyboard.cpp.

BOOL WINAPI ActivateKeyboardLayout HKL    hkl,
UINT    fuFlags
 

Definition at line 1756 of file winkeyboard.cpp.

BOOL WINAPI UnloadKeyboardLayout HKL    hkl
 

Definition at line 1775 of file winkeyboard.cpp.

void WINAPI KeySetOverlayKeyState int    nVirtKey,
char    nState
 

Definition at line 1787 of file winkeyboard.cpp.

Referenced by OS2ToWinMsgTranslate().


Variable Documentation

char arrchOverlayKeyState[256] = {0} [static]
 

Definition at line 39 of file winkeyboard.cpp.

BYTE abPMScanToWinVKey[256][2]
 

Definition at line 62 of file winkeyboard.cpp.

WINVKEYTOPMSCAN abWinVKeyToPMScan[256]
 

Definition at line 331 of file winkeyboard.cpp.

BYTE abPMScanToWinScan[256][2]
 

Definition at line 597 of file winkeyboard.cpp.


Generated on Wed Jan 23 23:21:49 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001