Re: [hatari-devel] Overlong SDL-Syms on Manjaro Linux

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


Am Mon, 11 Jul 2022 16:39:24 +0200
schrieb Martin <martin@xxxxxxxxxxx>:

> Hi. When running Hatari 2.4.0 (and before) with --trace keymap on 
> Manjaro Linux with SDL 2.0.22, I get strange looking and overlong 
> symbols on just two keys (German keyboard):
> 
> Below Esc and left of key "1": ^°-Key and
> 
> left from Backspace: '`-Key
> 
> On Windows with newest Hatari release I get completely sane symbols, but 
> on Manjaro Linux I get:
> 
> key down: sym=1073741824 scan=46 mod=0x0 name=''
> key map: sym=0x40000000 to ST-scan=0x0d
> key up: sym=1073741824 scan=46 mod=0x0 name=''
> 
> key down: sym=1073741824 scan=53 mod=0x0 name=''
> key map: sym=0x40000000 to ST-scan=0x0d
> key up: sym=1073741824 scan=53 mod=0x0 name=''
> 
> Since I can make a key-mapping for Hatari just on the base of symbols, 
> I'd like to get them going.
> 
> Could you be so kind to test/proof this on another Linux distribution to 
> see, if it is a bug just in my distro?

 Hi Martin!

Works for me on my German keyboard:

key down: sym=94 scan=53 mod=0x1000 name='^'
key map: sym=0x5e to ST-scan=0x2b
key up: sym=94 scan=53 mod=0x1000 name='^'
key down: sym=180 scan=46 mod=0x1000 name='´'
key map: sym=0xb4 to ST-scan=0x0d
key up: sym=180 scan=46 mod=0x1000 name='´'

That 0x40000000 looks like SDLK_SCANCODE_MASK - so seems like the SDL
failed to match your keys with a normal ASCII value, I guess?

Since it's only happening for ^ and ´ ... do you maybe have dead keys
enabled? What happens if you open a text editor and e.g. type ^ followed by
an "o" ? Do you get ^o or do you get ô ? In the latter case, please try to
disable the dead keys in your keyboard settings and try again.

 Thomas



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