mirror of https://github.com/mpv-player/mpv
input: make MP_INPUT_RELEASE_ALL a pseudo-key
Should be without consequences. I think this is less trouble, because code frequently wants to add/remove bits for modifiers and key state from key codes, and with this change you can't accidentally break it by testing or removing bits from the old -1 value.
This commit is contained in:
parent
4a90da4e1d
commit
033af5390f
|
@ -23,9 +23,6 @@
|
|||
|
||||
#include "cmd.h"
|
||||
|
||||
// For mp_input_put_key(): release all keys that are down.
|
||||
#define MP_INPUT_RELEASE_ALL -1
|
||||
|
||||
struct input_ctx;
|
||||
struct mp_log;
|
||||
|
||||
|
|
|
@ -216,6 +216,8 @@
|
|||
// No input source should generate this.
|
||||
#define MP_KEY_UNMAPPED (MP_KEY_INTERN+4)
|
||||
#define MP_KEY_ANY_UNICODE (MP_KEY_INTERN+5)
|
||||
// For mp_input_put_key(): release all keys that are down.
|
||||
#define MP_INPUT_RELEASE_ALL (MP_KEY_INTERN+6)
|
||||
|
||||
// Emit a command even on key-up (normally key-up is ignored). This means by
|
||||
// default they binding will be triggered on key-up instead of key-down.
|
||||
|
|
Loading…
Reference in New Issue