[SDL] Reading and Writing
Igor Castro
castrolima at gmail.com
Mon May 21 05:09:41 PDT 2007
how can i read the key strokes? using the queue events? or something like
"scanf" in sdl?
thanks very much!
On 5/21/07, Alberto Luaces <aluaces at udc.es> wrote:
>
> Hi Igor,
>
> El Lunes 21 Mayo 2007, Igor Castro escribió:
> > (i think to use sdl event, but it's not good because it read one by one)
>
> I don't understand this very well. Events are stored in a queue one by
> one,
> ordered by their arrival time. You usually get them from that queue until
> it
> is empty, so you can always get all the events up to date.
>
> > and.. how can i write characters on som particular position with
> particular
> > font???
>
> You first read the key strokes, then use SDL TTF to render the text in
> whatever font you want into a surface, then you blit it where you want on
> the
> screen.
>
> HTH,
>
> Alberto
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20070521/0581dfe9/attachment.htm
More information about the SDL
mailing list