[Coco] xroar keyboard definitions

Joel Rees joel.rees at gmail.com
Sun May 1 03:15:01 EDT 2022


On Sun, May 1, 2022 at 4:02 PM Joel Rees <joel.rees at gmail.com> wrote:
>
> I should show the overall keyboard. I've posted an image in one of my blogs:
>
> https://defining-computers.blogspot.com/2022/05/panasonic-lets-note-cf-nx2-keyboard.html

And I should have pasted in the keymap as I presently have it defined:

static struct sym_dkey_mapping keymap_jp[] = {
    { .sym = GDK_KEY_minus, .dkey = DSCAN_COLON },
    { .sym = GDK_KEY_upcaret, .dkey = DSCAN_MINUS }, /* Not really . */
    { .sym = GDK_KEY_backslash, .dkey = DSCAN_MINUS }, /* For debugging. */
    { .sym = GDK_KEY_at, .dkey = DSCAN_AT },
    { .sym = GDK_KEY_semicolon, .dkey = DSCAN_SEMICOLON },
/*    { .sym = GDK_KEY_grave, .dkey = DSCAN_CLEAR, .priority = 1 }, */
    { .sym = GDK_KEY_comma, .dkey = DSCAN_COMMA },
    { .sym = GDK_KEY_period, .dkey = DSCAN_FULL_STOP },
    { .sym = GDK_KEY_slash, .dkey = DSCAN_SLASH },
/*    { .sym = GDK_KEY_bracketleft, .dkey = DSCAN_?? }, */
};

> On Sun, May 1, 2022 at 9:38 AM Joel Rees <joel.rees at gmail.com> wrote:
> >
> > On Sun, May 1, 2022 at 2:27 AM Joel Rees <joel.rees at gmail.com> wrote:
> > > [...]
> > >
> > > I'll have more questions later, [...]
> >
> > Unfortunately, I'm having trouble with getting the equals sign where
> > it should be.
> >
> > I'm working off mostly unedited copy of the UK, etc. map, since the
> > typical Japanese
> > keyboard is very close to that.
> >
> > To the right of the 0 on the typical Japanese keyboard is the -/= key,
> > which the Dragon
> > binds by position to :/* . There's no problem with that, if I
> > understand what I'm doing.
> > I press that key unshifted and get :, shifted and get * .
> >
> > To the right of that key is ^/~ (caret/tilde) . In the default UK map,
> > that key just doesn't
> > produce anything.
> >
> > I replace the line
> >
> > { .sym = GDK_KEY_equal, .dkey = DSCAN_MINUS },
> >
> > with
> >
> > { .sym = GDK_KEY_caret, .dkey = DSCAN_MINUS },
> >
> > and it still doesn't produce anything. I've also tried GDK_KEY_tilde
> > and GDK_KEY_upcaret
> > with the same non-result.
> >
> > I can move DSCAN_MINUS off to another key on the next row, and that
> > works, but then
> > it's out of place.
> >
> > Any suggestions?


-- 
Joel Rees


More information about the Coco mailing list