[BRLTTY] keycode brlapi no names
Samuel Thibault
samuel.thibault at ens-lyon.org
Wed Dec 4 08:22:02 EST 2019
Hello,
Quartel, Eric de, le mer. 04 déc. 2019 07:23:29 +0000, a ecrit:
> When i have the apiclient running with the following code:
>
> /* get the keycodes*/
>
> size_t len;
> brlapi_param_keyCode_t *keys=brlapi_getParameterAlloc
> (BRLAPI_PARAM_DEVICE_KEY_CODES,0,1,&len);
> len/=sizeof(*keys);
> for (int j=0; j<len;j++){
> char *name=brlapi_getParameterAlloc(BRLAPI_PARAM_KEY_SHORT_NAME,keys
> [j],1,NULL);
> fprintf(stderr, "Key: %x Name: %s\n",keys[j],name);
> free(name);
> }
> free(keys);
>
> I get this output with no names,
That's odd, it does work here with the Baum emulated display.
> Key: 1ff Name: (null)
> Key: 0 Name: (null)
> Key: 1 Name: (null)
> Key: 2 Name: (null)
Could you pass -l server to the brltty daemon and get the log, so we get
to know more precisely why it doesn't return a value?
Samuel
More information about the BRLTTY
mailing list