[MPlayer-dev-eng] [PATCH] binding to keypad & functional keys

Vladimir Mosgalin mosgalin at VM10124.spb.edu
Mon Mar 24 00:28:14 CET 2003


On Sun, 23 Mar 2003, Alex Beregszaszi wrote:

AB>the linux/keycodes.h is probably bad.  Get here a list of the
AB>keycodes for the keypad:
AB>http://www.georgehernandez.com/xVB/zMisc/Keyboarding.htm#Numeric%20Keypad%20KeyCodes

Are you really sure? As far as I can see, codes in keycodes.h are mostly
random, look at "Control keys" - I see no logic there except comfort way
to define some similar keys.

Bindings for these defines to actual keys for console, x11 and sdl go in
linux/getch2.c, libvo/x11_common.c and libvo/vo_sdl.c accordingly. And
these defines can be set to any values, in my opinion.

AB>Please update the keypad.h according to the right values. You can
AB>test them for correctness with pressing them in the x-terminal or on
AB>the console, so mplayer can catch them natively. (not from the X
AB>gui/windows)

I tested keys, but how console can distinguish keypad? When I press
C-v (keypad-key), I see the same value that I get when pressing
C-V (number) or C-v (home/end/cursor keys), both in X terminal and linux
console. No keypad info in 'man termcap' too.

So, console seems to be out of luck.

Btw, by 'current cvs' you mean 0_90 or main? I fetched main some time
ago, but there is no linux/ dir there at all...

-- 

Vladimir


More information about the MPlayer-dev-eng mailing list