summaryrefslogtreecommitdiffstats
path: root/input/input.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-23 15:08:49 +0100
committerwm4 <wm4@nowhere>2014-11-23 15:13:35 +0100
commitae5df9be98e4193342321f30285655fcf88e7e63 (patch)
tree3f327acc1c25f3e48bebfc13c0d0061823c282e0 /input/input.h
parent7b47f12f8f1cae385060741e4e7f758297515225 (diff)
downloadmpv-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.h9
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