include/SDL_events.h
changeset 911 04a403e4ccf5
parent 844 cd0c77df70a4
child 930 02759105b989
     1.1 --- a/include/SDL_events.h	Sun Jul 18 19:46:38 2004 +0000
     1.2 +++ b/include/SDL_events.h	Sun Jul 18 22:57:40 2004 +0000
     1.3 @@ -106,14 +106,14 @@
     1.4  #define SDL_ALLEVENTS		0xFFFFFFFF
     1.5  
     1.6  /* Application visibility event structure */
     1.7 -typedef struct {
     1.8 +typedef struct SDL_ActiveEvent {
     1.9  	Uint8 type;	/* SDL_ACTIVEEVENT */
    1.10  	Uint8 gain;	/* Whether given states were gained or lost (1/0) */
    1.11  	Uint8 state;	/* A mask of the focus states */
    1.12  } SDL_ActiveEvent;
    1.13  
    1.14  /* Keyboard event structure */
    1.15 -typedef struct {
    1.16 +typedef struct SDL_KeyboardEvent {
    1.17  	Uint8 type;	/* SDL_KEYDOWN or SDL_KEYUP */
    1.18  	Uint8 which;	/* The keyboard device index */
    1.19  	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */
    1.20 @@ -121,7 +121,7 @@
    1.21  } SDL_KeyboardEvent;
    1.22  
    1.23  /* Mouse motion event structure */
    1.24 -typedef struct {
    1.25 +typedef struct SDL_MouseMotionEvent {
    1.26  	Uint8 type;	/* SDL_MOUSEMOTION */
    1.27  	Uint8 which;	/* The mouse device index */
    1.28  	Uint8 state;	/* The current button state */
    1.29 @@ -131,7 +131,7 @@
    1.30  } SDL_MouseMotionEvent;
    1.31  
    1.32  /* Mouse button event structure */
    1.33 -typedef struct {
    1.34 +typedef struct SDL_MouseButtonEvent {
    1.35  	Uint8 type;	/* SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */
    1.36  	Uint8 which;	/* The mouse device index */
    1.37  	Uint8 button;	/* The mouse button index */
    1.38 @@ -140,7 +140,7 @@
    1.39  } SDL_MouseButtonEvent;
    1.40  
    1.41  /* Joystick axis motion event structure */
    1.42 -typedef struct {
    1.43 +typedef struct SDL_JoyAxisEvent {
    1.44  	Uint8 type;	/* SDL_JOYAXISMOTION */
    1.45  	Uint8 which;	/* The joystick device index */
    1.46  	Uint8 axis;	/* The joystick axis index */
    1.47 @@ -148,7 +148,7 @@
    1.48  } SDL_JoyAxisEvent;
    1.49  
    1.50  /* Joystick trackball motion event structure */
    1.51 -typedef struct {
    1.52 +typedef struct SDL_JoyBallEvent {
    1.53  	Uint8 type;	/* SDL_JOYBALLMOTION */
    1.54  	Uint8 which;	/* The joystick device index */
    1.55  	Uint8 ball;	/* The joystick trackball index */
    1.56 @@ -157,7 +157,7 @@
    1.57  } SDL_JoyBallEvent;
    1.58  
    1.59  /* Joystick hat position change event structure */
    1.60 -typedef struct {
    1.61 +typedef struct SDL_JoyHatEvent {
    1.62  	Uint8 type;	/* SDL_JOYHATMOTION */
    1.63  	Uint8 which;	/* The joystick device index */
    1.64  	Uint8 hat;	/* The joystick hat index */
    1.65 @@ -170,7 +170,7 @@
    1.66  } SDL_JoyHatEvent;
    1.67  
    1.68  /* Joystick button event structure */
    1.69 -typedef struct {
    1.70 +typedef struct SDL_JoyButtonEvent {
    1.71  	Uint8 type;	/* SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */
    1.72  	Uint8 which;	/* The joystick device index */
    1.73  	Uint8 button;	/* The joystick button index */
    1.74 @@ -181,24 +181,24 @@
    1.75     When you get this event, you are responsible for setting a new video
    1.76     mode with the new width and height.
    1.77   */
    1.78 -typedef struct {
    1.79 +typedef struct SDL_ResizeEvent {
    1.80  	Uint8 type;	/* SDL_VIDEORESIZE */
    1.81  	int w;		/* New width */
    1.82  	int h;		/* New height */
    1.83  } SDL_ResizeEvent;
    1.84  
    1.85  /* The "screen redraw" event */
    1.86 -typedef struct {
    1.87 +typedef struct SDL_ExposeEvent {
    1.88  	Uint8 type;	/* SDL_VIDEOEXPOSE */
    1.89  } SDL_ExposeEvent;
    1.90  
    1.91  /* The "quit requested" event */
    1.92 -typedef struct {
    1.93 +typedef struct SDL_QuitEvent {
    1.94  	Uint8 type;	/* SDL_QUIT */
    1.95  } SDL_QuitEvent;
    1.96  
    1.97  /* A user-defined event type */
    1.98 -typedef struct {
    1.99 +typedef struct SDL_UserEvent {
   1.100  	Uint8 type;	/* SDL_USEREVENT through SDL_NUMEVENTS-1 */
   1.101  	int code;	/* User defined event code */
   1.102  	void *data1;	/* User defined data pointer */
   1.103 @@ -208,7 +208,7 @@
   1.104  /* If you want to use this event, you should include SDL_syswm.h */
   1.105  struct SDL_SysWMmsg;
   1.106  typedef struct SDL_SysWMmsg SDL_SysWMmsg;
   1.107 -typedef struct {
   1.108 +typedef struct SDL_SysWMEvent {
   1.109  	Uint8 type;
   1.110  	SDL_SysWMmsg *msg;
   1.111  } SDL_SysWMEvent;