Re: [hatari-users] Anyone have a non-trivial keyboard mapping example? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-users Archives
]
- To: hatari-users@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [hatari-users] Anyone have a non-trivial keyboard mapping example?
- From: Kelly Hall <kmhall@xxxxxxxxx>
- Date: Sat, 21 Jan 2023 02:12:58 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=xhJ7dNI+iKCxN8c3iqOT3HB61Zz3qEjoHOph7SSIZ1c=; b=HSiwffUMUkR6iOm0zi7Mz59IXj4gZzNpUXYhMNACH1bZkLIERAd6K5DbvWfhg1+l3T 3vgO6p8oDdyfhL16DLcKkeCEdt7O71665XbIfppv0CId1QXMHM/QZuOaGGVCY1DwaZJp CjSwfNO2/8Pe55cED/bY4ORESIvs84siJ4b88UwsrTjHokHJqP/PN3aGWQBm+fTz7Hlt 2jNVk69WodPdB8yBHsquO/DTVDr1YaVRvZbOGw99PWpP3hN5EgUP9yPi6k5Hoyzt91b0 yGeMe683dsnOOGu0Z8dymMQTzEmvmNFQvcWgEXkAIetbiwkyUGPahplSUxDQegfGuPoX K6EQ==
Thanks, Eero! Using scancode mapping fixed my issue with [] and {}.
The backslash has moved, but it's still available. I'll poke around
in the config file and make sure everything looks reasonable as well.
Regards,
Kelly
On Fri, Jan 20, 2023 at 4:16 PM Eero Tamminen <oak@xxxxxxxxxxxxxx> wrote:
>
> Hi,
>
> In general it's best to start by using scancode mapping (instead of
> symbolic), and telling TOS to use a suitable keymap.
>
> Keymaps supported by different TOS country versions (and 512k & 1024k
> EmuTOS versions) are listed here:
> https://tho-otto.de/keyboards/
>
> If TOS supports multiple countries [1], there are Hatari "--country" and
> "--layout" options (saved to config file along with other options) to
> tell TOS which keyboard layout to use.
>
>
> - Eero
>
> [1] TOS v4 and EmuTOS 512k & 1024k versions do.
>
>
> On 20.1.2023 23.06, Kelly Hall wrote:
> > Hello Hatari Users!
> >
> > I'm loving playing with Hatari 2.4.1 and getting a simple development
> > environment set up. But I can't write any C code until my keyboard
> > can generate { and } symbols :) When I'm running the Mark Williams
> > shell, or the attached micro emacs, [ and { map to (, and ] and } map
> > to ).
> >
> > Does anyone have nontrivial examples that include mapping shifted
> > keys? I've tried this this and while it doesn't cause errors, it
> > doesn't work, either:
> > SDLK_KP_LEFTBRACE,99
> > SDLK_KP_RIGHTBRACE,100
> >
> > My US (pc) keyboard has { and } as shift [ and shift ].
> >
> > I'm using EmuTOS 1.2.1 if that matters.
> >
> > Thank you!
> > Kelly Hall
> >
> >
>
>