Re: [hatari-devel] alt-gr not recognized anymore with sdl2

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


 Hi,

On 30.01.2016 23:06, David Savinkoff wrote:
> ----- Thomas Huth wrote:
....
>> could you please run "xev" and tell me what you get when you press
>> the right ALT key on your keyboard? You should see something like:
>>
>> KeyPress event, serial 37, synthetic NO, window 0x3800001,
>>     root 0xd6, subw 0x3800002, time 30598513, (53,55), root:(924,502),
>>     state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
>>     XKeysymToKeycode returns keycode: 92
>>     XLookupString gives 0 bytes: 
>>     XmbLookupString gives 0 bytes: 
>>     XFilterEvent returns: False
>>
>> (this is what I get)
> 
> Note that my laptop has NTSC s-video, and and American keyboard.
> 
> ***** xev output for Alt_R press and release:
> 
> KeyPress event, serial 30, synthetic NO, window 0x3200001,
>     root 0x82, subw 0x0, time 713700, (547,-530), root:(582,66),
>     state 0x0, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
>     XLookupString gives 0 bytes: 
>     XmbLookupString gives 0 bytes: 
>     XFilterEvent returns: False

Ok, thanks for checking, that's what I've thought: Your key reports
"Alt_R" while the AltGr key on our European keyboards reports
"ISO_Level3_Shift" - and SDL2 currently only checks for Alt_R and not
for the Level3_Shift code ... that's why it's working for you but not
for me.

 Thomas




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/