Re: [hatari-users] Key mapping issues |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
- To: Eero Tamminen <oak@xxxxxxxxxxxxxx>
- Subject: Re: [hatari-users] Key mapping issues
- From: Charles Curley <charlescurley@xxxxxxxxxxxxxxxxx>
- Date: Thu, 10 Jan 2019 16:21:15 -0700
- Cc: hatari-users@xxxxxxxxxxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=charlescurley.com; s=default; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=my0vO9ILmQ3yYU2A3tX0C+eOlqUN7F8F+OeanrrIrx8=; b=UO8Y1pV9694c5GutT282LFZQN5 TPQlVecduTM1qmDZBSsF+imyhtiK+6uyjfrrE3E+qqgrO7CPgo1xaLZAVacF43Gj94D/9d3B7BrJg ro6DHLcp5nnTMNEhZPT7X/A3Eq7O6syt/qrpCqvWXaP2MMhI2Vk6YYmoLzsdFm+cnWwEh4K1ShA7M 3zwvCsixtJvq2otVDBUfBNPF3pvaHexLvzPWTJqA4Rw5veKQguzVV6tIdkryB3jmQPxQxU7oKs7qk Avhq5GXcYiDOAbXXnAbSZsKdgkerMpfL+C383UFA0uZPbPe2u18Tq3xiYtvFZA7FtB216CjXbyUZi 5hVVma5g==;
- Organization: occasionally
On Fri, 4 Jan 2019 21:49:39 +0200
Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> On 1/3/19 11:10 PM, Charles Curley wrote:
> > I have an odd key mapping problem. Hatari, as of Sun Dec 16 13:31:19
> > 2018 +0200, hg commit 7269:7e5cd2b03ab7. Debian 9.x as
> > updated. Keyboard is a Logitech USB keyboard. evemu-describe does
> > not return any identifiers.
> >
> > Hatari appears to be swapping the `/~ key with the \/| key. That is
> > to get | I have to press ~. That's a bit of a problem.
>
> Different TOS versions map Atari scancodes to different keys, and
> individual Atari programs can also install their own key mapping
> tables too.
>
> As to Hatari side, there are 2 different methods for providing Atari
> keyboard scancodes to emulation, one based on libSDL key scancodes,
> and one based on libSDL key symbols.
> Have you tried both? And a TOS version which key mapping is closest
> to what you want?
I have tried both. And both are unsatisfactory for one reason or
another. I am currently using Scancode keyboard mapping, with which I
get the above problem.
emutos is etos256us.00.09.10.img, version 0.9.10.
>
> If you need to experiment, I'd recommend EmuTOS:
> https://sourceforge.net/projects/emutos/files/emutos/0.9.10/emutos-256k-0.9.10.zip/download
>
>
> > So I created a scancode file:
> >
> > `,29
> > ~,29
> > \,2b
> > |,2b
> >
> > The 2b codes work correctly, and | shows up on the | key. However,
> > the ~ key now acts like it's the insert key, and returns 0 and hex
> > 52 ('R'). Not good.
> >
> > Any ideas on how to improve this?
>
> Hatari includes tools to investigate what SDL and Atari scancodes
> you actually get:
> https://hg.tuxfamily.org/hatari/hatari/file/tip/tests/keymap
checkkeys reports that both keys are returning the correct ASCII codes.
listkeys did nothing useful:
charles@hawk:~/versioned/hatari/tests/keymap$ ./listkeys
Sorry, SDL2 doesn't support iterating over all keys.
charles@hawk:~/versioned/hatari/tests/keymap$
I did install and use keytest.prg. It reports that the two keys are
returning the swapped scancodes.
>
> Atari scancode positions on a keyboard are shown in this image:
> http://eerott.mbnet.fi/hatari/img/st-keymap.png
Thanks. I had to dig out an actual 520 ST to map the characters to the
scan codes. | is 43 (to the right of Return), and ` is 41, above the
return key.
>
>
> - Eero
>
>
--
"When we talk of civilization, we are too apt to limit the meaning of
the word to its mere embellishments, such as arts and sciences; but
the true distinction between it and barbarism is, that the one
presents a state of society under the protection of just and
well-administered law, and the other is left to the chance government
of brute force."
- The Rev. James White, Eighteen Christian Centuries, 1889
Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
https://charlescurley.com