1SDL_PushEvent(3)               SDL API Reference              SDL_PushEvent(3)
2
3
4

NAME

6       SDL_PushEvent - Pushes an event onto the event queue
7

SYNOPSIS

9       #include "SDL.h"
10
11       int SDL_PushEvent(SDL_Event *event);
12

DESCRIPTION

14       The  event  queue can actually be used as a two way communication chan‐
15       nel. Not only can events be read from the queue, but the user can  also
16       push  their  own events onto it. event is a pointer to the event struc‐
17       ture you wish to push onto the queue.
18
19              Note:
20
21              Pushing device input events onto the queue  doesn't  modify  the
22              state of the device within SDL.
23

RETURN VALUE

25       Returns 0 on success or -1 if the event couldn't be pushed.
26

EXAMPLES

28       See SDL_Event.
29

SEE ALSO

31       SDL_PollEvent, SDL_PeepEvents, SDL_Event
32
33
34
35SDL                         Tue 11 Sep 2001, 22:59            SDL_PushEvent(3)
Impressum