[Coco] xroar keyboard definitions

Joel Rees joel.rees at gmail.com
Sat Apr 30 13:27:47 EDT 2022


On Sun, May 1, 2022 at 2:12 AM Ciaran Anscomb via Coco
<coco at maltedmedia.com> wrote:
>
> Joel Rees via Coco wrote:
> > I'm trying to compile a Japanese keyboard definition for the current
> > source, and I'm not figuring out how to get the source code in
> > src/gtk2/keyboard_gtk2_mappings.c to be recognized when compiled.
> >
> > Would appreciate help.
>
> Wow, ok cool.
>
> So first off - is this under Linux?  The GTK+2 code will only be used
> for the GTK+2 UI, which generally means Linux.  In theory, SDL2 (used
> under Windows and MacOSX) knows where each key is either by magic or
> by asking the OS.
>
> If this is for Linux/GTK+2, and you've got your new array of mappings
> defined, the only thing you should need to do is reference it along
> with a string identifying it (to be used as an argument to the "-keymap"
> option) in the keymaps[] array at the bottom of that file.
>[,,,]

Thanks. I was having one of those "run the one you just compiled, not the
one in your executable path" moments.

I should be brushing my teeth so I can go to bed, but I just checked, and
when I run the one I just compiled, It's there.

I'll have more questions later, hopefully whether you want the
keyboard definition after I make sure I got it right.

(I am going to brush my teeth and go to bed. It's now 2:27 here.)

-- 
Joel Rees

http://reiisi.blogspot.jp/p/novels-i-am-writing.html


More information about the Coco mailing list