Mercurial > mplayer.hg
annotate input/mouse.h @ 34335:c5f6bc8ae2b4
Use an enum to define keycodes and fix CTRL and backspace key having
the same keycode.
This is because KEY_CTRL was supposed to be the name of the "key class",
not the key, but that was later misunderstood.
Obviously that was some major bad naming....
author | reimar |
---|---|
date | Sat, 10 Dec 2011 14:27:04 +0000 |
parents | d63bf64a2094 |
children |
rev | line source |
---|---|
28112 | 1 /* |
2 * This file is part of MPlayer. | |
3 * | |
4 * MPlayer is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; either version 2 of the License, or | |
7 * (at your option) any later version. | |
8 * | |
9 * MPlayer is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 * GNU General Public License for more details. | |
13 * | |
14 * You should have received a copy of the GNU General Public License along | |
15 * with MPlayer; if not, write to the Free Software Foundation, Inc., | |
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
17 */ | |
18 | |
26029 | 19 #ifndef MPLAYER_MOUSE_H |
20 #define MPLAYER_MOUSE_H | |
4589
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
21 |
4657
610a11e4db36
Added key autorepeat support. Options to enable/disable joystick and lirc
albeu
parents:
4589
diff
changeset
|
22 #define MOUSE_BASE ((0x100+256)|MP_NO_REPEAT_KEY) |
4589
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
23 #define MOUSE_BTN0 (MOUSE_BASE+0) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
24 #define MOUSE_BTN1 (MOUSE_BASE+1) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
25 #define MOUSE_BTN2 (MOUSE_BASE+2) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
26 #define MOUSE_BTN3 (MOUSE_BASE+3) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
27 #define MOUSE_BTN4 (MOUSE_BASE+4) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
28 #define MOUSE_BTN5 (MOUSE_BASE+5) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
29 #define MOUSE_BTN6 (MOUSE_BASE+6) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
30 #define MOUSE_BTN7 (MOUSE_BASE+7) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
31 #define MOUSE_BTN8 (MOUSE_BASE+8) |
4ce20c55a18a
Added support for key combination and mouse buttons key code
albeu
parents:
diff
changeset
|
32 #define MOUSE_BTN9 (MOUSE_BASE+9) |
33304
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
33 #define MOUSE_BTN10 (MOUSE_BASE+10) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
34 #define MOUSE_BTN11 (MOUSE_BASE+11) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
35 #define MOUSE_BTN12 (MOUSE_BASE+12) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
36 #define MOUSE_BTN13 (MOUSE_BASE+13) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
37 #define MOUSE_BTN14 (MOUSE_BASE+14) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
38 #define MOUSE_BTN15 (MOUSE_BASE+15) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
39 #define MOUSE_BTN16 (MOUSE_BASE+16) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
40 #define MOUSE_BTN17 (MOUSE_BASE+17) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
41 #define MOUSE_BTN18 (MOUSE_BASE+18) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
42 #define MOUSE_BTN19 (MOUSE_BASE+19) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
43 #define MOUSE_BTN_LAST MOUSE_BTN19 |
16974 | 44 |
45 #define MOUSE_BASE_DBL (0x300|MP_NO_REPEAT_KEY) | |
46 #define MOUSE_BTN0_DBL (MOUSE_BASE_DBL+0) | |
47 #define MOUSE_BTN1_DBL (MOUSE_BASE_DBL+1) | |
48 #define MOUSE_BTN2_DBL (MOUSE_BASE_DBL+2) | |
49 #define MOUSE_BTN3_DBL (MOUSE_BASE_DBL+3) | |
50 #define MOUSE_BTN4_DBL (MOUSE_BASE_DBL+4) | |
51 #define MOUSE_BTN5_DBL (MOUSE_BASE_DBL+5) | |
52 #define MOUSE_BTN6_DBL (MOUSE_BASE_DBL+6) | |
53 #define MOUSE_BTN7_DBL (MOUSE_BASE_DBL+7) | |
54 #define MOUSE_BTN8_DBL (MOUSE_BASE_DBL+8) | |
55 #define MOUSE_BTN9_DBL (MOUSE_BASE_DBL+9) | |
33304
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
56 #define MOUSE_BTN10_DBL (MOUSE_BASE_DBL+10) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
57 #define MOUSE_BTN11_DBL (MOUSE_BASE_DBL+11) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
58 #define MOUSE_BTN12_DBL (MOUSE_BASE_DBL+12) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
59 #define MOUSE_BTN13_DBL (MOUSE_BASE_DBL+13) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
60 #define MOUSE_BTN14_DBL (MOUSE_BASE_DBL+14) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
61 #define MOUSE_BTN15_DBL (MOUSE_BASE_DBL+15) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
62 #define MOUSE_BTN16_DBL (MOUSE_BASE_DBL+16) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
63 #define MOUSE_BTN17_DBL (MOUSE_BASE_DBL+17) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
64 #define MOUSE_BTN18_DBL (MOUSE_BASE_DBL+18) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
65 #define MOUSE_BTN19_DBL (MOUSE_BASE_DBL+19) |
d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
reimar
parents:
28112
diff
changeset
|
66 #define MOUSE_BTN_LAST_DBL MOUSE_BTN19_DBL |
25553
6ac1ece1f9fe
Add multiple inclusion guards to all header files that lack them.
diego
parents:
16974
diff
changeset
|
67 |
26029 | 68 #endif /* MPLAYER_MOUSE_H */ |