On Jan 10, 2008 4:34 PM, Elliott Slaughter <[EMAIL PROTECTED]> wrote:
> The description of with-events says "The unicode field is only used
> when UNICODE translation is enabled with SDL_EnableUNICODE." That's
> all fine but I can't find how or where to call SDL_EnableUNICODE
> (isn't it a C function?...). (I don't believe it is an option to
> with-init... so I don't know where else to look.)
It definitely isn't a with-init option. (It might be nice to have it
as an init option, even though it isn't on exactly the same level as
the other init options.)
> If someone could tell me how to enable unicode translation, or add
> that capability to the current source of lispbuilder, I would
> appreciate it. Thanks.
After looking through the sdl-cffi source and sdl and cffi manuals, I
came up with the following hack which seems to do the job:
(cffi:defcfun ("SDL_EnableUNICODE" SDL-Enable-Unicode) :void
(value :int))
(sdl-enable-unicode 1)
It would be nice if lispbuilder-sdl had a standard wrapper function for this.
--
Elliott Slaughter
"Any road followed precisely to its end leads precisely nowhere." -
Frank Herbert
_______________________________________________
application-builder mailing list
[email protected]
http://www.lispniks.com/mailman/listinfo/application-builder