[hatari-devel] Caps Lock bug in maxYMiser
Eero Tamminen
eerot at users.berlios.de
Sat Mar 20 17:27:59 CET 2010
Hi,
On Saturday 20 March 2010, Anders Eriksson wrote:
> > Doesn't happen for me on Debian/Linux.
> >
> > Little Googling indicates that this is an issue in Windows/SDL, with
> > some old Mac keyboards and with obsolete (proprietary) X servers.
> > You could try a newer SDL version to see whether it fixes the issue.
>
> I have the latest released SDL framework for OS X, I have compiled the
> latest sources, and I have used your builds of 1.3.1. It happens on all
> of them.
That part of Hatari hasn't changed in years I think.
Hatari doesn't create key events by itself. They come from the operating
system (and may be manipulated by SDL in the way). Hatari just converts
them to corresponding ST key events.
Hatari seems to have this extra handling for CapsLock in keymap.c
Keymap_KeyUp() function:
else if (symkey == SDLK_CAPSLOCK)
{
/* Simulate another capslock key press */
IKBD_PressSTKey(0x3A, true);
}
But it only adds CapsLock ST key press when Hatari gets key up even from
SDL, before giving the actual ST key up event.
I don't know why that code is there, but you could try whether disabling
it affects anything on your system.
- Eero
More information about the hatari-devel
mailing list