source: trunk/src/user32/oslibkbd.h@ 10367

Last change on this file since 10367 was 9810, checked in by sandervl, 23 years ago

ToAscii, GetKeyState, GetAsyncKeyState & GetKeyboardState fixes

File size: 1.4 KB
Line 
1/* $Id: oslibkbd.h,v 1.1 2003-02-16 15:31:10 sandervl Exp $ */
2/*
3 * Keyboard helpers for OS/2
4 *
5 *
6 * Copyright 2003 Sander van Leeuwen (sandervl@innotek.de)
7 *
8 *
9 * Project Odin Software License can be found in LICENSE.TXT
10 *
11 */
12#ifndef __OSLIBKBD_H__
13#define __OSLIBKBD_H__
14
15SHORT OSLibWinGetScanState(USHORT scan);
16BOOL OSLibWinGetScanStateTable(unsigned char *PMScanState);
17LONG OSLibWinGetPhysKeyState(LONG scan);
18BOOL OSLibWinGetKeyboardStateTable(unsigned char * PMKeyState);
19BOOL OSLibWinSetKeyboardStateTable(unsigned char * PMKeyState);
20
21#define TCF_LSHIFT 0x0001
22#define TCF_RSHIFT 0x0002
23#define TCF_SHIFT (TCF_LSHIFT | TCF_RSHIFT)
24#define TCF_LCONTROL 0x0004
25#define TCF_RCONTROL 0x0008
26#define TCF_CONTROL (TCF_LCONTROL | TCF_RCONTROL)
27#define TCF_ALT 0x0010
28#define TCF_ALTGR 0x0020
29#define TCF_CAPSLOCK 0x0040
30#define TCF_NUMLOCK 0x0080
31#define TCF_OEMSCANCODE 0x0100
32#define TCF_EXTENDEDKEY 0x0200
33
34#define TC_CHARTOSCANCODE 0
35#define TC_SCANCODETOCHAR 1
36#define TC_VIRTUALKEYTOSCANCODE 2
37#define TC_SCANCODETOVIRTUALKEY 3
38#define TC_SCANTOOEMSCAN 4
39#define TC_OEMSCANTOSCAN 5
40
41USHORT OSLibWinTranslateChar(USHORT usScanCode, ULONG type, USHORT shiftstate);
42
43#endif //__OSLIBKBD_H__
Note: See TracBrowser for help on using the repository browser.