[BRLTTY] using BrlAPI and speech API in one program

Samuel Thibault samuel.thibault at ens-lyon.org
Sun Aug 22 06:56:51 EDT 2010


marquats at studi.informatik.uni-stuttgart.de, le Sun 22 Aug 2010 11:40:13 +0200, a écrit :
> >> I can click on the cells, but the input is not delivered to the
> >> program (client).  The method brlapi_readKey (1, &key) does not
> >> return when I click.
> 
> >Did you use brlapi_acceptKeys() to enable getting them?
> 
> Now I tried to solve it by calling brlapi_acceptKeys()
> or brlapi_acceptAllKeys(), but it made no difference.

Mmm, that's odd. I guess you made sure that your windows has the focus
when you are pressing the cells?

> >> 1. changing to multibyte coding in the project settings:
> >> Configuration Properties / General / Character set: Multi-Byte
> >>
> >> 2. #undef UNICODE at the beginning of the program
> >> BTW, the constand UNICODE was defined to have the value 1
> 
> >Mmm, it's odd. Did you include brlapi.h before or after windows.h?
> 
> I didn't include windows.h at all.
> It is a simple Win32 console application and does not need it.

I'm realizing that brlapi.h actually includes windows.h itself at the
head, so it shouldn't matter.

I'll have to check why unicode wasn't working.

Samuel


More information about the BRLTTY mailing list