GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SDL_USEREVENT (3)

NAME

SDL_UserEvent - A user-defined event type

CONTENTS

STRUCTURE DEFINITION

typedef struct{
  Uint8 type;
  int code;
  void *data1;
  void *data2;
} SDL_UserEvent;

STRUCTURE DATA

type SDL_USEREVENT through to SDL_NUMEVENTS-1
code User defined event code
data1 User defined data pointer
data2 User defined data pointer

DESCRIPTION

SDL_UserEvent is in the user member of the structure SDL_Event. This event is unique, it is never created by SDL but only by the user. The event can be pushed onto the event queue using SDL_PushEvent. The contents of the structure members or completely up to the programmer, the only requirement is that type is a value from SDL_USEREVENT to SDL_NUMEVENTS-1 (inclusive).

EXAMPLES

SDL_Event event;

event.type = SDL_USEREVENT; event.user.code = my_event_code; event.user.data1 = significant_data; event.user.data2 = 0; SDL_PushEvent(&event);

SEE ALSO

SDL_Event, SDL_PushEvent

Search for    or go to Top of page |  Section 3 |  Main Index


SDL SDL_USEREVENT (3) Tue 11 Sep 2001, 23:00

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.