mirror of
https://github.com/mpv-player/mpv
synced 2024-12-22 23:02:37 +00:00
input: support up to 20 mouse buttons
Increase the number of supported mouse buttons from 10 to 20. There really seem to be input devices with at least 12. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@33391 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f30a83863e
commit
9737ae2196
@ -277,6 +277,16 @@ static const mp_key_name_t key_names[] = {
|
||||
{ MOUSE_BTN7, "MOUSE_BTN7" },
|
||||
{ MOUSE_BTN8, "MOUSE_BTN8" },
|
||||
{ MOUSE_BTN9, "MOUSE_BTN9" },
|
||||
{ MOUSE_BTN10, "MOUSE_BTN10" },
|
||||
{ MOUSE_BTN11, "MOUSE_BTN11" },
|
||||
{ MOUSE_BTN12, "MOUSE_BTN12" },
|
||||
{ MOUSE_BTN13, "MOUSE_BTN13" },
|
||||
{ MOUSE_BTN14, "MOUSE_BTN14" },
|
||||
{ MOUSE_BTN15, "MOUSE_BTN15" },
|
||||
{ MOUSE_BTN16, "MOUSE_BTN16" },
|
||||
{ MOUSE_BTN17, "MOUSE_BTN17" },
|
||||
{ MOUSE_BTN18, "MOUSE_BTN18" },
|
||||
{ MOUSE_BTN19, "MOUSE_BTN19" },
|
||||
{ MOUSE_BTN0_DBL, "MOUSE_BTN0_DBL" },
|
||||
{ MOUSE_BTN1_DBL, "MOUSE_BTN1_DBL" },
|
||||
{ MOUSE_BTN2_DBL, "MOUSE_BTN2_DBL" },
|
||||
@ -287,6 +297,16 @@ static const mp_key_name_t key_names[] = {
|
||||
{ MOUSE_BTN7_DBL, "MOUSE_BTN7_DBL" },
|
||||
{ MOUSE_BTN8_DBL, "MOUSE_BTN8_DBL" },
|
||||
{ MOUSE_BTN9_DBL, "MOUSE_BTN9_DBL" },
|
||||
{ MOUSE_BTN10_DBL, "MOUSE_BTN10_DBL" },
|
||||
{ MOUSE_BTN11_DBL, "MOUSE_BTN11_DBL" },
|
||||
{ MOUSE_BTN12_DBL, "MOUSE_BTN12_DBL" },
|
||||
{ MOUSE_BTN13_DBL, "MOUSE_BTN13_DBL" },
|
||||
{ MOUSE_BTN14_DBL, "MOUSE_BTN14_DBL" },
|
||||
{ MOUSE_BTN15_DBL, "MOUSE_BTN15_DBL" },
|
||||
{ MOUSE_BTN16_DBL, "MOUSE_BTN16_DBL" },
|
||||
{ MOUSE_BTN17_DBL, "MOUSE_BTN17_DBL" },
|
||||
{ MOUSE_BTN18_DBL, "MOUSE_BTN18_DBL" },
|
||||
{ MOUSE_BTN19_DBL, "MOUSE_BTN19_DBL" },
|
||||
{ JOY_AXIS1_MINUS, "JOY_UP" },
|
||||
{ JOY_AXIS1_PLUS, "JOY_DOWN" },
|
||||
{ JOY_AXIS0_MINUS, "JOY_LEFT" },
|
||||
|
@ -140,7 +140,17 @@
|
||||
#define MOUSE_BTN7 (MOUSE_BASE+7)
|
||||
#define MOUSE_BTN8 (MOUSE_BASE+8)
|
||||
#define MOUSE_BTN9 (MOUSE_BASE+9)
|
||||
#define MOUSE_BTN_END (MOUSE_BASE+10)
|
||||
#define MOUSE_BTN10 (MOUSE_BASE+10)
|
||||
#define MOUSE_BTN11 (MOUSE_BASE+11)
|
||||
#define MOUSE_BTN12 (MOUSE_BASE+12)
|
||||
#define MOUSE_BTN13 (MOUSE_BASE+13)
|
||||
#define MOUSE_BTN14 (MOUSE_BASE+14)
|
||||
#define MOUSE_BTN15 (MOUSE_BASE+15)
|
||||
#define MOUSE_BTN16 (MOUSE_BASE+16)
|
||||
#define MOUSE_BTN17 (MOUSE_BASE+17)
|
||||
#define MOUSE_BTN18 (MOUSE_BASE+18)
|
||||
#define MOUSE_BTN19 (MOUSE_BASE+19)
|
||||
#define MOUSE_BTN_END (MOUSE_BASE+20)
|
||||
|
||||
#define MOUSE_BASE_DBL (0x300|MP_NO_REPEAT_KEY)
|
||||
#define MOUSE_BTN0_DBL (MOUSE_BASE_DBL+0)
|
||||
@ -153,7 +163,17 @@
|
||||
#define MOUSE_BTN7_DBL (MOUSE_BASE_DBL+7)
|
||||
#define MOUSE_BTN8_DBL (MOUSE_BASE_DBL+8)
|
||||
#define MOUSE_BTN9_DBL (MOUSE_BASE_DBL+9)
|
||||
#define MOUSE_BTN_DBL_END (MOUSE_BASE_DBL+10)
|
||||
#define MOUSE_BTN10_DBL (MOUSE_BASE_DBL+10)
|
||||
#define MOUSE_BTN11_DBL (MOUSE_BASE_DBL+11)
|
||||
#define MOUSE_BTN12_DBL (MOUSE_BASE_DBL+12)
|
||||
#define MOUSE_BTN13_DBL (MOUSE_BASE_DBL+13)
|
||||
#define MOUSE_BTN14_DBL (MOUSE_BASE_DBL+14)
|
||||
#define MOUSE_BTN15_DBL (MOUSE_BASE_DBL+15)
|
||||
#define MOUSE_BTN16_DBL (MOUSE_BASE_DBL+16)
|
||||
#define MOUSE_BTN17_DBL (MOUSE_BASE_DBL+17)
|
||||
#define MOUSE_BTN18_DBL (MOUSE_BASE_DBL+18)
|
||||
#define MOUSE_BTN19_DBL (MOUSE_BASE_DBL+19)
|
||||
#define MOUSE_BTN_DBL_END (MOUSE_BASE_DBL+20)
|
||||
|
||||
|
||||
#endif // AR_DEFINES_ONLY
|
||||
|
Loading…
Reference in New Issue
Block a user