Slowly unpicking things ...
I rebuilt sdltest and modified the make file to use local include files
- and this changed things a bit.
Instead of seeing it reporting a scancode of 0 for the media keys it is
now showing a non-zero number.
So - more on what I found.
background - to make sure I have the right understanding
rc_keymap stuff maps a "scancode" to textual representation.
This scancode is usually an infrared sequence - but in the case of CEC
is a representation of each button as a simple number (which I guess
matches either the driver or a standard for cec ... it is hardcoded).
The default mapping of cec "scancode" to text-ish version comes from
/usr/lib/udev/rc_keymaps/cec.toml
For example:
Code:
--------------------
0x01 = "KEY_UP"
0x02 = "KEY_DOWN"
0x03 = "KEY_LEFT"
0x04 = "KEY_RIGHT"
...
0x46 = "KEY_PAUSECD"
--------------------
So it looks like something (still looking to see what) has translated to
something that SDL likes
e.g.
rc_keymap 0x01 = "KEY_UP"
becomes
SDL Scancode: 0x67, Name: up
However,
rc_keymap 0x46 = "KEY_PAUSECD"
becomes
SDL Scancode: 0xC9, Name: unknown key, Unicode: ? (0x0000)
C9 = decimal 201 ... ascii E-acute
So ... if I can find where the mapping of
0x01 = "KEY_UP" to Scancode: 0xC9
is done then I might be able to change it.
... it looks like things changed a bit in SDL2 (I know SDL2 not used by
Squeezeplay/Jivelite) where I see in
events/scancodes_linux.h
Code:
--------------------
/* 200 */ SDL_SCANCODE_UNKNOWN, /* KEY_PLAYCD */
/* 201 */ SDL_SCANCODE_UNKNOWN, /* KEY_PAUSECD */
--------------------
... so clearly someone knew about 201 being pausecd ... but chose not to
map it.
Paul Webster
http://dabdig.blogspot.com
author of \"now playing\" plugins covering radio france (fip etc), kcrw,
supla finland, abc australia, cbc/radio-canada and rte ireland
------------------------------------------------------------------------
Paul Webster's Profile: http://forums.slimdevices.com/member.php?userid=105
View this thread: http://forums.slimdevices.com/showthread.php?t=113784
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix