From a63e880400c7c840858e499a18735c6e1f8248fe Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 14 Jan 2012 14:09:26 +0100 Subject: input: allow unicode keys and reassign internal key codes This moves all key codes above the highest valid unicode code point (which is 0x10FFFF). All key codes below MP_KEY_BASE now directly map to unicode. Configuration files (input.conf) can contain unicode characters in UTF-8 to map non-ASCII characters/keys. This shouldn't change anything user visible, except that "direct key codes" (as used in input.conf) will change their meaning. --- mp_fifo.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mp_fifo.h') diff --git a/mp_fifo.h b/mp_fifo.h index 01c1fb0c37..aa7fde0f29 100644 --- a/mp_fifo.h +++ b/mp_fifo.h @@ -19,8 +19,11 @@ #ifndef MPLAYER_MP_FIFO_H #define MPLAYER_MP_FIFO_H +#include "bstr.h" + struct mp_fifo; void mplayer_put_key(struct mp_fifo *fifo, int code); +void mplayer_put_key_utf8(struct mp_fifo *fifo, int mods, struct bstr code); // Can be freed with talloc_free() struct input_ctx; struct MPOpts; -- cgit v1.2.3