diff options
author | wm4 <wm4@nowhere> | 2018-05-10 15:57:36 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2018-05-25 10:17:06 +0200 |
commit | eb08cd75c1f821e55a6c56eec574c058815384bc (patch) | |
tree | c8a79edc694f5891fcae4dcd57622918dc5c114f /player | |
parent | 25525cee62cdf863b1b7db768e7d594a20df21c7 (diff) | |
download | mpv-eb08cd75c1f821e55a6c56eec574c058815384bc.tar.bz2 mpv-eb08cd75c1f821e55a6c56eec574c058815384bc.tar.xz |
input: add a define for the number of mouse buttons and use it
(Why the fuck are there up to 20 mouse buttons?)
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c index cc8b609c50..60fb7447e1 100644 --- a/player/command.c +++ b/player/command.c @@ -5757,7 +5757,7 @@ static void cmd_mouse(void *p) mp_input_set_mouse_pos_artificial(mpctx->input, x, y); return; } - if (button < 0 || button >= 20) {// invalid button + if (button < 0 || button >= MP_KEY_MOUSE_BTN_COUNT) {// invalid button MP_ERR(mpctx, "%d is not a valid mouse button number.\n", button); cmd->success = false; return; |