SDL_PeepEvents



SDL_PeepEvents

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
SEE ALSO

NAME

SDL_PeepEvents − Checks the event queue for messages and optionally returns them.

SYNOPSIS

#include "SDL.h"

int SDL_PeepEvents(SDL_Event *events, int numevents, SDL_eventaction action, Uint32 mask);

DESCRIPTION

Checks the event queue for messages and optionally returns them.

If action is SDL_ADDEVENT, up to numevents events will be added to the back of the event queue.

If action is SDL_PEEKEVENT, up to numevents events at the front of the event queue, matching mask, will be returned and will not be removed from the queue.

If action is SDL_GETEVENT, up to numevents events at the front of the event queue, matching mask, will be returned and will be removed from the queue.

This function is thread-safe.

RETURN VALUE

This function returns the number of events actually stored, or -1 if there was an error.

SEE ALSO

SDL_Event, SDL_PollEvent, SDL_PushEvent



More Linux Commands

manpages/Tcl_IsChannelRegistered.3.html
Tcl_IsChannelRegistered(3) - procedures for creating and man
Tcl uses a two-layered channel architecture. It provides a generic upper layer to enable C and Tcl programs to perform input and output using the same APIs for

manpages/waddwstr.3ncurses.html
waddwstr(3ncurses) - add a string of wide characters to a cu
These functions write the characters of the (null-terminated) wchar_t character string wstr on the given window. It is similar to constructing a cchar_t for eac

manpages/Tcl_FSGetInternalRep.3.html
Tcl_FSGetInternalRep(3) - procedures to interact with any fi
There are several reasons for calling the Tcl_FS API functions (e.g. Tcl_FSAccess and Tcl_FSStat) rather than calling system level functions like access and sta

manpages/acl_from_text.3.html
acl_from_text(3) - create an ACL from text - Linux man page
The acl_from_text() function converts the text form of the ACL referred to by buf_p into the internal form of an ACL and returns a pointer to the working storag

manpages/glMultiTexCoord3iARB.3gl.html
glMultiTexCoord3iARB(3gl) - set the current texture coordina
glMultiTexCoordARB specifies texture coordinates in one, two, three, or four dimensions. glMultiTexCoord1ARB sets the current texture coordinates to (s, 0, 0, 1

manpages/CMSG_NXTHDR.3.html
CMSG_NXTHDR(3) - Access ancillary data - Linux manual page
These macros are used to create and access control messages (also called ancillary data) that are not a part of the socket payload. This control information may

manpages/XCreateFontCursor.3.html
XCreateFontCursor(3) - create cursors - Linux manual page...
X provides a set of standard cursor shapes in a special font named cursor. Applications are encouraged to use this interface for their cursors because the font

manpages/tcl_library.n.html
tcl_library(n) Variables used by Tcl _______________________
The following global variables are created and managed automatically by the Tcl library. Except where noted below, these variables should normally be treated as

manpages/sigorset.3.html
sigorset(3) - POSIX signal set operations. - Linux man page
These functions allow the manipulation of POSIX signal sets. sigemptyset() initializes the signal set given by set to empty, with all signals excluded from the

manpages/Tcl_GetAssocData.3.html
Tcl_GetAssocData(3) - manage associations of string keys and
These procedures allow extensions to associate their own data with a Tcl interpreter. An association consists of a string key, typically the name of the extensi

manpages/curl_easy_send.3.html
curl_easy_send(3) - sends raw data over an "easy" connection
This function sends arbitrary data over the established connection. You may use it together with curl_easy_recv(3) to implement custom protocols using libcurl.

manpages/diffpp.1.html
diffpp(1) - pretty-print diff outputs with GNU enscript.....
Diffpp converts diff-jars(1)-programs output files to a format suitable to be printed with GNU enscript(1). Program annotates the changes with enscripts special





We can't live, work or learn in freedom unless the software we use is free.