Adding upstream version 3.35.
[syslinux-debian/hramrach.git] / menu / libmenu / scancodes.h
blobd3f625a60ae9a8202a1b2884ee394fa0e106deea
1 /* -*- c -*- ------------------------------------------------------------- *
3 * Copyright 2004-2005 Murali Krishnan Ganapathy - All Rights Reserved
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef __SCANCODES_H__
14 #define __SCANCODES_H__
16 // Scancodes of some keys
17 #define ESCAPE 1
18 #define ENTERA 28
19 #define ENTERB 224
21 #define HOMEKEY 71
22 #define UPARROW 72
23 #define PAGEUP 73
24 #define LTARROW 75
25 #define RTARROW 77
26 #define ENDKEY 79
27 #define DNARROW 80
28 #define PAGEDN 81
29 #define INSERT 82
30 #define DELETE 83
31 #define SPACEKEY 57 // Scan code for SPACE
33 #define CTRLLT 0x73
34 #define CTRLRT 0x74
36 #define F1 0x3B
37 #define F2 0x3C
38 #define F3 0x3D
39 #define F4 0x3E
40 #define F5 0x3F
41 #define F6 0x40
42 #define F7 0x41
43 #define F8 0x42
44 #define F9 0x43
45 #define F10 0x44
46 #define F11 0x85
47 #define F12 0x86
49 #define CTRLF1 0x5E
50 #define CTRLF2 0x5F
51 #define CTRLF3 0x60
52 #define CTRLF4 0x61
53 #define CTRLF5 0x62
54 #define CTRLF6 0x63
55 #define CTRLF7 0x64
56 #define CTRLF8 0x65
57 #define CTRLF9 0x66
58 #define CTRLF10 0x67
59 #define CTRLF11 0x89
60 #define CTRLF12 0x8A
62 #define ALTF1 0x68
63 #define ALTF2 0x69
64 #define ALTF3 0x6A
65 #define ALTF4 0x6B
66 #define ALTF5 0x6C
67 #define ALTF6 0x6D
68 #define ALTF7 0x6E
69 #define ALTF8 0x6F
70 #define ALTF9 0x70
71 #define ALTF10 0x71
72 #define ALTF11 0x8B
73 #define ALTF12 0x8C
75 /* Bits representing ShiftFlags, See Int16/Function 2 or Mem[0x417] to get this info */
77 #define INSERT_ON (1<<7)
78 #define CAPSLOCK_ON (1<<6)
79 #define NUMLOCK_ON (1<<5)
80 #define SCRLLOCK_ON (1<<4)
81 #define ALT_PRESSED (1<<3)
82 #define CTRL_PRESSED (1<<2)
83 // actually 1<<1 is Left Shift, 1<<0 is right shift
84 #define SHIFT_PRESSED (1<<1 | 1 <<0)
86 #endif