te copio una cita de un site[1]

Synopsis
int SDL_PushEvent(SDL_Event *event);
Description
The event queue can actually be used as a two way communication channel. Not
only can events be read from the queue, but the user can also push their own
events onto it. event is a pointer to the event structure you wish to push
onto the queue. The event is copied into the queue, and the caller may
dispose of the memory pointed to after SDL_PushEvent returns.

saludos!
[1]: http://sdl.beuc.net/sdl.wiki/SDL_PushEvent

--------------------------------------------------
From: "Carlos Pantelides" <[EMAIL PROTECTED]>
Sent: Thursday, November 13, 2008 3:13 PM
To: <[email protected]>
Subject: [Prog] eventos sdl

Estimados:

int SDL_PushEvent(SDL_Event *event)

Alguien sabe si "event" va copiado a la cola de eventos o es sólo el
puntero? Me imagino que se copia, pues si hago

void f() {
SDL_Event event;
event.type = SDL_QUIT;
SDL_PushEvent(&event);
}

anda, pero si fuera un puntero podria andar a veces si y a veces no, no?

Mi pregunta es si alguien ya lo sabe, es porque no tengo tiempo de buscar
en el código fuente, no es pereza.

Gracias

Carlos Pantelides




_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion

_______________________________________________
Lista de correo Programacion.
[email protected]
http://listas.fi.uba.ar/mailman/listinfo/programacion

Responder a