input: allow unicode keys and reassign internal key codes
commit166a7de4cf94a78c34040b47a929a72d12f2945f
authorwm4 <wm4@mplayer2.org>
Fri, 13 Jan 2012 06:38:40 +0000 (13 07:38 +0100)
committerUoti Urpala <uau@mplayer2.org>
Sun, 25 Mar 2012 19:30:37 +0000 (25 22:30 +0300)
tree3b326a949d7add071c3dc92a1ab1eb5d86e194da
parent3e6e80a32c04e38c7d2fa77e4bcf1401e792dc7a
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 (KEY_ENTER is 13, carriage return). 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.

Parts of the bstr functions taken from libavutil's GET_UTF8 and
slightly modified.
bstr.c
bstr.h
input/input.c
input/keycodes.h
mp_fifo.c
mp_fifo.h
osdep/getch2.c