diff options
author | wm4 <wm4@nowhere> | 2014-11-23 15:08:49 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-11-23 15:13:35 +0100 |
commit | ae5df9be98e4193342321f30285655fcf88e7e63 (patch) | |
tree | 3f327acc1c25f3e48bebfc13c0d0061823c282e0 /input/input.h | |
parent | 7b47f12f8f1cae385060741e4e7f758297515225 (diff) | |
download | mpv-ae5df9be98e4193342321f30285655fcf88e7e63.tar.bz2 mpv-ae5df9be98e4193342321f30285655fcf88e7e63.tar.xz |
input, lua: redo input handling
Much of it is the same, but now there's the possibility to distinguish
key down/up events in the Lua API.
Diffstat (limited to 'input/input.h')
-rw-r--r-- | input/input.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/input/input.h b/input/input.h index 6da1f719c2..02e9d2f86b 100644 --- a/input/input.h +++ b/input/input.h @@ -76,9 +76,12 @@ typedef struct mp_cmd { int flags; // mp_cmd_flags bitfield bstr original; char *input_section; - bool key_up_follows; - bool repeated; - bool mouse_move; + bool is_up_down : 1; + bool is_up : 1; + bool is_mouse_button : 1; + bool key_up_follows : 1; + bool repeated : 1; + bool mouse_move : 1; int mouse_x, mouse_y; struct mp_cmd *queue_next; double scale; // for scaling numeric arguments |