Mercurial > mplayer.hg
diff mp_fifo.c @ 33304:d63bf64a2094
Support up to 20 mouse buttons, there really seem to be input devices
with at least 12.
author | reimar |
---|---|
date | Sat, 07 May 2011 10:44:57 +0000 |
parents | 1e637ada9003 |
children | 0caa0bf428b9 |
line wrap: on
line diff
--- a/mp_fifo.c Fri May 06 15:50:49 2011 +0000 +++ b/mp_fifo.c Sat May 07 10:44:57 2011 +0000 @@ -72,7 +72,7 @@ unsigned doubleclick_time = 300; static void put_double(int code) { - if (code >= MOUSE_BTN0 && code <= MOUSE_BTN9) + if (code >= MOUSE_BTN0 && code <= MOUSE_BTN_LAST) mplayer_put_key_internal(code - MOUSE_BTN0 + MOUSE_BTN0_DBL); } @@ -83,7 +83,7 @@ // ignore system-doubleclick if we generate these events ourselves if (doubleclick_time && (code & ~MP_KEY_DOWN) >= MOUSE_BTN0_DBL && - (code & ~MP_KEY_DOWN) <= MOUSE_BTN9_DBL) + (code & ~MP_KEY_DOWN) <= MOUSE_BTN_LAST_DBL) return; mplayer_put_key_internal(code); if (code & MP_KEY_DOWN) {