Hello Samuel,

I'm a bit struggling with the code...
First I tried to get a clone from github.
Then I get a message when I run ./autogen that there is no such file or 
directory in /usr/bin/env
Then I moved all the files of the clone in my brltty-6.0 folder and try to run 
./configure again no success... error messages
Where does it go wrong. (Just starting with github so a newbee)
Hope you can help me.

Regards,
Eric de Quartel

-----Original Message-----
From: Samuel Thibault <[email protected]> 
Sent: 23 November 2019 16:41
To: Quartel, Eric de <[email protected]>
Cc: [email protected]
Subject: Re: [BRLTTY] keycodes description

Hello,

Samuel Thibault, le ven. 09 août 2019 00:48:10 +0200, a ecrit:
> Quartel, Eric de, le ven. 02 août 2019 14:22:22 +0000, a ecrit:
> > I “connect” here the key with the keycode, for example ThumbLeft FWINLT.
> > 
> > I would like to see the key (in this case ”Thumbleft”) when I type 
> > this key on the brailledisplay.
> > 
> > How can I can get this string?
> 
> There is currently no way to do this, but we are finishing an API 
> which will allow to do it, stay tuned :)

This is now in!

You can use

size_t len, i;
brlapi_param_keyCode_t *keys = 
brlapi_getParameterAlloc(BRLAPI_PARAM_DEVICE_KEY_CODES, 0, 1, &len);

len /= sizeof(*keys);

for (i = 0; i < len; i++)
{
        char *name = 
brlapi_getParameterAlloc(BRLAPI_BRLAPI_PARAM_KEY_SHORT_NAME, keys[i], 1, NULL);
        printf("key %x name %s\n", keys[i], name);
        free(name);
}

free(keys);

Samuel
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: [email protected]
For general information, go to: http://brltty.app/mailman/listinfo/brltty

Reply via email to