Re: [hatari-users] shortcut alt+j not working ?

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


Hi,

On 11/18/2017 08:07 PM, Nicolas Pomarède wrote:
under linux, I noticed that alt+j is not recognized as a shortcut key anymore to enable joystick. alt+x, alt+d, ... all seems to work, but not all+x.

Did you mean AltGr, or really Alt?

AltGr is the Hatari shortcut modifier key.  Alt-key combos
can be bound by your desktop...


AltGr-J & AltGr-X work fine for me with latest Hatari.

I have SDL 2.0.2 though, not 2.0.7.


	- Eero

If I run hatari with --trace keymap, I have :

when pressing alt :
key down: sym=1073742054 scan=230 mod=0x200 name='Right Alt'

when keeping alt pressed and pressing j:
nothing

when pressing j alone :
key down: sym=106 scan=13 mod=0x0 name='J'



If I use 'xev' to get the events from X pressing alt then d gives :

KeyPress event, serial 153, synthetic NO, window 0x7000001,
     root 0x156, subw 0x0, time 6510237, (162,20), root:(1866,49),
     state 0x80, keycode 40 (keysym 0xf0, eth), same_screen YES,
     XLookupString gives 2 bytes: (c3 b0) "ð"
     XmbLookupString gives 2 bytes: (c3 b0) "ð"
     XFilterEvent returns: True

and pressing alt then j gives :

KeyPress event, serial 153, synthetic NO, window 0x7000001,
     root 0x156, subw 0x0, time 6512154, (162,20), root:(1866,49),
     state 0x80, keycode 44 (keysym 0xfe61, dead_hook), same_screen YES,
     XLookupString gives 0 bytes:
     XmbLookupString gives 0 bytes:
     XFilterEvent returns: True

So, the difference between alt+j and all other alt+XX is that alt+j has no translation associated (dead_hook). But still, as xev get the keys event, shouldn't SDL2 gets them too ?

this is with SDL 2.0.7 ; did anyone notice this too ?

Nicolas






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