input: move all key code lists to input/keycodes.h
commit23cb82907220d0c2724a0ec92bde437cbcd67d6a
authorUoti Urpala <uau@mplayer2.org>
Mon, 25 Apr 2011 06:43:59 +0000 (25 09:43 +0300)
committerUoti Urpala <uau@mplayer2.org>
Sun, 1 May 2011 21:43:31 +0000 (2 00:43 +0300)
tree1c1ea8667a2da5b6ddb5dd8e2f0c6f6558304ab5
parent3e86228fad309b54869bf2a3314756933ba74e43
input: move all key code lists to input/keycodes.h

Move the definitions of all special key codes (those not passed by
ASCII value) to input/keycodes.h. Before they were spread between
osdep/keycodes.h, input/joystick.h, input/mouse.h and input/ar.h, plus
some special values in input.h. This was especially inconvenient as
the codes had to be coordinated to not conflict between the files.

The change requires a bit of ugliness as appleir.c includes
<linux/input.h> which contains various conflicting KEY_* definitions.
Work around this by adding a special preprocessor variable which can
be used to avoid defining these in keycodes.h.
32 files changed:
input/appleir.c
input/ar.c
input/ar.h
input/input.c
input/input.h
input/joystick.h
input/keycodes.h [new file with mode: 0644]
input/mouse.h [deleted file]
libmenu/menu.c
libmenu/menu_console.c
libmenu/menu_dvbin.c
libmenu/menu_filesel.c
libmenu/menu_list.c
libmenu/menu_txt.c
libvo/osx_common.c
libvo/sdl_common.c
libvo/vo_aa.c
libvo/vo_caca.c
libvo/vo_corevideo.m
libvo/vo_dfbmga.c
libvo/vo_directfb2.c
libvo/vo_directx.c
libvo/vo_ggi.c
libvo/vo_kva.c
libvo/vo_quartz.c
libvo/w32_common.c
libvo/x11_common.c
mp_fifo.c
osdep/getch2-os2.c
osdep/getch2-win.c
osdep/getch2.c
osdep/keycodes.h [deleted file]