diff options
author | wm4 <wm4@nowhere> | 2013-06-19 18:19:45 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-06-29 22:58:13 +0200 |
commit | 831a7cf3eea1015a76f4accba4f4d237a5336f7b (patch) | |
tree | 2f7206e2243936b7e030a81c80e99042575199b3 /core/input/keycodes.h | |
parent | fc422f5aebbfe6dd2ea12b92fe9b13ba5fd65041 (diff) | |
download | mpv-831a7cf3eea1015a76f4accba4f4d237a5336f7b.tar.bz2 mpv-831a7cf3eea1015a76f4accba4f4d237a5336f7b.tar.xz |
input: trigger mouse_leave key bindings if mouse leaves mouse area
Also, implement mouse leave events for X11. But evne on other
platforms, these events will be generated if mouse crosses a section's
mouse area boundaries within the mpv window.
Diffstat (limited to 'core/input/keycodes.h')
-rw-r--r-- | core/input/keycodes.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/input/keycodes.h b/core/input/keycodes.h index b086d82809..80e2561514 100644 --- a/core/input/keycodes.h +++ b/core/input/keycodes.h @@ -206,6 +206,7 @@ #define MP_KEY_CLOSE_WIN (MP_KEY_INTERN+0) // Generated by input.c (VOs use mp_input_set_mouse_pos()) #define MP_KEY_MOUSE_MOVE ((MP_KEY_INTERN+1)|MP_NO_REPEAT_KEY) +#define MP_KEY_MOUSE_LEAVE ((MP_KEY_INTERN+2)|MP_NO_REPEAT_KEY) #define MP_KEY_DEPENDS_ON_MOUSE_POS(code) \ |