From ae5df9be98e4193342321f30285655fcf88e7e63 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Nov 2014 15:08:49 +0100 Subject: 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. --- input/input.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'input/input.h') 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 -- cgit v1.2.3