OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [include/] [microwin/] [winkbd.h] - Blame information for rev 565

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
/* winkbd.h*/
2
/*
3
 * Copyright (c) 2000 Greg Haerr <greg@censoft.com>
4
 *
5
 * Win32 keyboard defines and API
6
 */
7
 
8
/* virtual key codes*/
9
#define VK_LBUTTON        0x01
10
#define VK_RBUTTON        0x02
11
#define VK_CANCEL         0x03          /* ctrl-break*/
12
#define VK_MBUTTON        0x04
13
#define VK_BACK           0x08          /* backspace*/
14
#define VK_TAB            0x09
15
#define VK_CLEAR          0x0C          /* kp5 w/numlock off*/
16
#define VK_RETURN         0x0D
17
#define VK_SHIFT          0x10          /* either shift*/
18
#define VK_CONTROL        0x11          /* either control*/
19
#define VK_MENU           0x12          /* alt*/
20
#define VK_PAUSE          0x13
21
#define VK_CAPITAL        0x14          /* caps lock*/
22
#define VK_KANA           0x15
23
#define VK_HANGEUL        VK_KANA
24
#define VK_HANGUL         0x15
25
#define VK_JUNJA          0x17
26
#define VK_FINAL          0x18
27
#define VK_HANJA          0x19
28
#define VK_KANJI          0x19
29
#define VK_ESCAPE         0x1B          /* esc*/
30
#define VK_CONVERT        0x1C
31
#define VK_NONCONVERT     0x1D
32
#define VK_ACCEPT         0x1E
33
#define VK_MODECHANGE     0x1F
34
#define VK_SPACE          0x20          /* spacebar*/
35
#define VK_PRIOR          0x21          /* page up*/
36
#define VK_NEXT           0x22          /* page dn*/
37
#define VK_END            0x23
38
#define VK_HOME           0x24
39
#define VK_LEFT           0x25
40
#define VK_UP             0x26
41
#define VK_RIGHT          0x27
42
#define VK_DOWN           0x28
43
#define VK_SELECT         0x29
44
#define VK_PRINT          0x2A
45
#define VK_EXECUTE        0x2B
46
#define VK_SNAPSHOT       0x2C
47
#define VK_INSERT         0x2D
48
#define VK_DELETE         0x2E
49
#define VK_HELP           0x2F
50
 
51
/* 0x30 - 0x39 ASCII 0 - 9*/
52
/* 0x41 - 0x5a ASCII A - Z*/
53
 
54
#define VK_LWIN           0x5B
55
#define VK_RWIN           0x5C
56
#define VK_APPS           0x5D
57
 
58
/* numeric keypad keys*/
59
#define VK_NUMPAD0        0x60
60
#define VK_NUMPAD1        0x61
61
#define VK_NUMPAD2        0x62
62
#define VK_NUMPAD3        0x63
63
#define VK_NUMPAD4        0x64
64
#define VK_NUMPAD5        0x65
65
#define VK_NUMPAD6        0x66
66
#define VK_NUMPAD7        0x67
67
#define VK_NUMPAD8        0x68
68
#define VK_NUMPAD9        0x69
69
#define VK_MULTIPLY       0x6A          /* kp * */
70
#define VK_ADD            0x6B          /* kp + */
71
#define VK_SEPARATOR      0x6C
72
#define VK_SUBTRACT       0x6D          /* kp - */
73
#define VK_DECIMAL        0x6E          /* kp . */
74
#define VK_DIVIDE         0x6F          /* kp / */
75
 
76
#define VK_F1             0x70
77
#define VK_F2             0x71
78
#define VK_F3             0x72
79
#define VK_F4             0x73
80
#define VK_F5             0x74
81
#define VK_F6             0x75
82
#define VK_F7             0x76
83
#define VK_F8             0x77
84
#define VK_F9             0x78
85
#define VK_F10            0x79
86
#define VK_F11            0x7A
87
#define VK_F12            0x7B
88
#define VK_F13            0x7C
89
#define VK_F14            0x7D
90
#define VK_F15            0x7E
91
#define VK_F16            0x7F
92
#define VK_F17            0x80
93
#define VK_F18            0x81
94
#define VK_F19            0x82
95
#define VK_F20            0x83
96
#define VK_F21            0x84
97
#define VK_F22            0x85
98
#define VK_F23            0x86
99
#define VK_F24            0x87
100
#define VK_NUMLOCK        0x90          /* num lock*/
101
#define VK_SCROLL         0x91          /* scroll lock*/
102
 
103
/* param to GetAsyncKeyState and GetKeyState only*/
104
#define VK_LSHIFT         0xA0
105
#define VK_RSHIFT         0xA1
106
#define VK_LCONTROL       0xA2
107
#define VK_RCONTROL       0xA3
108
#define VK_LMENU          0xA4
109
#define VK_RMENU          0xA5
110
 
111
#define VK_PROCESSKEY     0xE5
112
#define VK_ATTN           0xF6
113
#define VK_CRSEL          0xF7
114
#define VK_EXSEL          0xF8
115
#define VK_EREOF          0xF9
116
#define VK_PLAY           0xFA
117
#define VK_ZOOM           0xFB
118
#define VK_NONAME         0xFC
119
#define VK_PA1            0xFD
120
#define VK_OEM_CLEAR      0xFE
121
 
122
/* WM_KEYUP/WM_KEYDOWN/WM_CHAR hiword lparam flags*/
123
#define KF_EXTENDED         0x0100
124
#define KF_DLGMODE          0x0800
125
#define KF_MENUMODE         0x1000
126
#define KF_ALTDOWN          0x2000
127
#define KF_REPEAT           0x4000
128
#define KF_UP               0x8000

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.