uterm_input: introduce UTERM_INPUT_HAS_MODS()
This is a convenient macro to check whether a given set of modifiers is enabled on the given input event. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
parent
51bfe9d107
commit
9c7e0159aa
@ -253,6 +253,8 @@ struct uterm_input_event {
|
||||
uint32_t unicode; /* ucs4 unicode value or UTERM_INPUT_INVALID */
|
||||
};
|
||||
|
||||
#define UTERM_INPUT_HAS_MODS(_ev, _mods) (((_ev)->mods & (_mods)) == (_mods))
|
||||
|
||||
typedef void (*uterm_input_cb) (struct uterm_input *input,
|
||||
struct uterm_input_event *ev,
|
||||
void *data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user