亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sdl_events.h

?? 在wince上的游戲模擬器的源碼
?? H
字號:
/*    SDL - Simple DirectMedia Layer    Copyright (C) 1997, 1998, 1999, 2000, 2001  Sam Lantinga    This library is free software; you can redistribute it and/or    modify it under the terms of the GNU Library General Public    License as published by the Free Software Foundation; either    version 2 of the License, or (at your option) any later version.    This library is distributed in the hope that it will be useful,    but WITHOUT ANY WARRANTY; without even the implied warranty of    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    Library General Public License for more details.    You should have received a copy of the GNU Library General Public    License along with this library; if not, write to the Free    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA    Sam Lantinga    slouken@devolution.com*/#ifdef SAVE_RCSIDstatic char rcsid = "@(#) SDL_events.h,v 1.1 2002/10/20 13:03:12 forgotten Exp";#endif/* Include file for SDL event handling */#ifndef _SDL_events_h#define _SDL_events_h#include "SDL_types.h"#include "SDL_active.h"#include "SDL_keyboard.h"#include "SDL_mouse.h"#include "SDL_joystick.h"#include "SDL_quit.h"#include "begin_code.h"/* Set up for C function definitions, even when using C++ */#ifdef __cplusplusextern "C" {#endif/* Event enumerations */enum { SDL_NOEVENT = 0,			/* Unused (do not remove) */       SDL_ACTIVEEVENT,			/* Application loses/gains visibility */       SDL_KEYDOWN,			/* Keys pressed */       SDL_KEYUP,			/* Keys released */       SDL_MOUSEMOTION,			/* Mouse moved */       SDL_MOUSEBUTTONDOWN,		/* Mouse button pressed */       SDL_MOUSEBUTTONUP,		/* Mouse button released */       SDL_JOYAXISMOTION,		/* Joystick axis motion */       SDL_JOYBALLMOTION,		/* Joystick trackball motion */       SDL_JOYHATMOTION,		/* Joystick hat position change */       SDL_JOYBUTTONDOWN,		/* Joystick button pressed */       SDL_JOYBUTTONUP,			/* Joystick button released */       SDL_QUIT,			/* User-requested quit */       SDL_SYSWMEVENT,			/* System specific event */       SDL_EVENT_RESERVEDA,		/* Reserved for future use.. */       SDL_EVENT_RESERVEDB,		/* Reserved for future use.. */       SDL_VIDEORESIZE,			/* User resized video mode */       SDL_VIDEOEXPOSE,			/* Screen needs to be redrawn */       SDL_EVENT_RESERVED2,		/* Reserved for future use.. */       SDL_EVENT_RESERVED3,		/* Reserved for future use.. */       SDL_EVENT_RESERVED4,		/* Reserved for future use.. */       SDL_EVENT_RESERVED5,		/* Reserved for future use.. */       SDL_EVENT_RESERVED6,		/* Reserved for future use.. */       SDL_EVENT_RESERVED7,		/* Reserved for future use.. */       /* Events SDL_USEREVENT through SDL_MAXEVENTS-1 are for your use */       SDL_USEREVENT = 24,       /* This last event is only for bounding internal arrays	  It is the number of bits in the event mask datatype -- Uint32        */       SDL_NUMEVENTS = 32};/* Predefined event masks */#define SDL_EVENTMASK(X)	(1<<(X))enum {	SDL_ACTIVEEVENTMASK	= SDL_EVENTMASK(SDL_ACTIVEEVENT),	SDL_KEYDOWNMASK		= SDL_EVENTMASK(SDL_KEYDOWN),	SDL_KEYUPMASK		= SDL_EVENTMASK(SDL_KEYUP),	SDL_MOUSEMOTIONMASK	= SDL_EVENTMASK(SDL_MOUSEMOTION),	SDL_MOUSEBUTTONDOWNMASK	= SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN),	SDL_MOUSEBUTTONUPMASK	= SDL_EVENTMASK(SDL_MOUSEBUTTONUP),	SDL_MOUSEEVENTMASK	= SDL_EVENTMASK(SDL_MOUSEMOTION)|	                          SDL_EVENTMASK(SDL_MOUSEBUTTONDOWN)|	                          SDL_EVENTMASK(SDL_MOUSEBUTTONUP),	SDL_JOYAXISMOTIONMASK	= SDL_EVENTMASK(SDL_JOYAXISMOTION),	SDL_JOYBALLMOTIONMASK	= SDL_EVENTMASK(SDL_JOYBALLMOTION),	SDL_JOYHATMOTIONMASK	= SDL_EVENTMASK(SDL_JOYHATMOTION),	SDL_JOYBUTTONDOWNMASK	= SDL_EVENTMASK(SDL_JOYBUTTONDOWN),	SDL_JOYBUTTONUPMASK	= SDL_EVENTMASK(SDL_JOYBUTTONUP),	SDL_JOYEVENTMASK	= SDL_EVENTMASK(SDL_JOYAXISMOTION)|	                          SDL_EVENTMASK(SDL_JOYBALLMOTION)|	                          SDL_EVENTMASK(SDL_JOYHATMOTION)|	                          SDL_EVENTMASK(SDL_JOYBUTTONDOWN)|	                          SDL_EVENTMASK(SDL_JOYBUTTONUP),	SDL_VIDEORESIZEMASK	= SDL_EVENTMASK(SDL_VIDEORESIZE),	SDL_VIDEOEXPOSEMASK	= SDL_EVENTMASK(SDL_VIDEOEXPOSE),	SDL_QUITMASK		= SDL_EVENTMASK(SDL_QUIT),	SDL_SYSWMEVENTMASK	= SDL_EVENTMASK(SDL_SYSWMEVENT)};#define SDL_ALLEVENTS		0xFFFFFFFF/* Application visibility event structure */typedef struct {	Uint8 type;	/* SDL_ACTIVEEVENT */	Uint8 gain;	/* Whether given states were gained or lost (1/0) */	Uint8 state;	/* A mask of the focus states */} SDL_ActiveEvent;/* Keyboard event structure */typedef struct {	Uint8 type;	/* SDL_KEYDOWN or SDL_KEYUP */	Uint8 which;	/* The keyboard device index */	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */	SDL_keysym keysym;} SDL_KeyboardEvent;/* Mouse motion event structure */typedef struct {	Uint8 type;	/* SDL_MOUSEMOTION */	Uint8 which;	/* The mouse device index */	Uint8 state;	/* The current button state */	Uint16 x, y;	/* The X/Y coordinates of the mouse */	Sint16 xrel;	/* The relative motion in the X direction */	Sint16 yrel;	/* The relative motion in the Y direction */} SDL_MouseMotionEvent;/* Mouse button event structure */typedef struct {	Uint8 type;	/* SDL_MOUSEBUTTONDOWN or SDL_MOUSEBUTTONUP */	Uint8 which;	/* The mouse device index */	Uint8 button;	/* The mouse button index */	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */	Uint16 x, y;	/* The X/Y coordinates of the mouse at press time */} SDL_MouseButtonEvent;/* Joystick axis motion event structure */typedef struct {	Uint8 type;	/* SDL_JOYAXISMOTION */	Uint8 which;	/* The joystick device index */	Uint8 axis;	/* The joystick axis index */	Sint16 value;	/* The axis value (range: -32768 to 32767) */} SDL_JoyAxisEvent;/* Joystick trackball motion event structure */typedef struct {	Uint8 type;	/* SDL_JOYBALLMOTION */	Uint8 which;	/* The joystick device index */	Uint8 ball;	/* The joystick trackball index */	Sint16 xrel;	/* The relative motion in the X direction */	Sint16 yrel;	/* The relative motion in the Y direction */} SDL_JoyBallEvent;/* Joystick hat position change event structure */typedef struct {	Uint8 type;	/* SDL_JOYHATMOTION */	Uint8 which;	/* The joystick device index */	Uint8 hat;	/* The joystick hat index */	Uint8 value;	/* The hat position value:				8   1   2				7   0   3				6   5   4			   Note that zero means the POV is centered.			*/} SDL_JoyHatEvent;/* Joystick button event structure */typedef struct {	Uint8 type;	/* SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP */	Uint8 which;	/* The joystick device index */	Uint8 button;	/* The joystick button index */	Uint8 state;	/* SDL_PRESSED or SDL_RELEASED */} SDL_JoyButtonEvent;/* The "window resized" event   When you get this event, you are responsible for setting a new video   mode with the new width and height. */typedef struct {	Uint8 type;	/* SDL_VIDEORESIZE */	int w;		/* New width */	int h;		/* New height */} SDL_ResizeEvent;/* The "screen redraw" event */typedef struct {	Uint8 type;	/* SDL_VIDEOEXPOSE */} SDL_ExposeEvent;/* The "quit requested" event */typedef struct {	Uint8 type;	/* SDL_QUIT */} SDL_QuitEvent;/* A user-defined event type */typedef struct {	Uint8 type;	/* SDL_USEREVENT through SDL_NUMEVENTS-1 */	int code;	/* User defined event code */	void *data1;	/* User defined data pointer */	void *data2;	/* User defined data pointer */} SDL_UserEvent;/* If you want to use this event, you should include SDL_syswm.h */struct SDL_SysWMmsg;typedef struct SDL_SysWMmsg SDL_SysWMmsg;typedef struct {	Uint8 type;	SDL_SysWMmsg *msg;} SDL_SysWMEvent;/* General event structure */typedef union {	Uint8 type;	SDL_ActiveEvent active;	SDL_KeyboardEvent key;	SDL_MouseMotionEvent motion;	SDL_MouseButtonEvent button;	SDL_JoyAxisEvent jaxis;	SDL_JoyBallEvent jball;	SDL_JoyHatEvent jhat;	SDL_JoyButtonEvent jbutton;	SDL_ResizeEvent resize;	SDL_ExposeEvent expose;	SDL_QuitEvent quit;	SDL_UserEvent user;	SDL_SysWMEvent syswm;} SDL_Event;/* Function prototypes *//* Pumps the event loop, gathering events from the input devices.   This function updates the event queue and internal input device state.   This should only be run in the thread that sets the video mode.*/extern DECLSPEC void SDL_PumpEvents(void);/* 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 returns the number of events actually stored, or -1   if there was an error.  This function is thread-safe.*/typedef enum {	SDL_ADDEVENT,	SDL_PEEKEVENT,	SDL_GETEVENT} SDL_eventaction;/* */extern DECLSPEC int SDL_PeepEvents(SDL_Event *events, int numevents,				SDL_eventaction action, Uint32 mask);/* Polls for currently pending events, and returns 1 if there are any pending   events, or 0 if there are none available.  If 'event' is not NULL, the next   event is removed from the queue and stored in that area. */extern DECLSPEC int SDL_PollEvent(SDL_Event *event);/* Waits indefinitely for the next available event, returning 1, or 0 if there   was an error while waiting for events.  If 'event' is not NULL, the next   event is removed from the queue and stored in that area. */extern DECLSPEC int SDL_WaitEvent(SDL_Event *event);/* Add an event to the event queue.   This function returns 0, or -1 if the event couldn't be added to   the event queue.  If the event queue is full, this function fails. */extern DECLSPEC int SDL_PushEvent(SDL_Event *event);/*  This function sets up a filter to process all events before they  change internal state and are posted to the internal event queue.  The filter is protypted as:*/typedef int (*SDL_EventFilter)(const SDL_Event *event);/*  If the filter returns 1, then the event will be added to the internal queue.  If it returns 0, then the event will be dropped from the queue, but the   internal state will still be updated.  This allows selective filtering of  dynamically arriving events.  WARNING:  Be very careful of what you do in the event filter function, as             it may run in a different thread!  There is one caveat when dealing with the SDL_QUITEVENT event type.  The  event filter is only called when the window manager desires to close the  application window.  If the event filter returns 1, then the window will  be closed, otherwise the window will remain open if possible.  If the quit event is generated by an interrupt signal, it will bypass the  internal queue and be delivered to the application at the next event poll.*/extern DECLSPEC void SDL_SetEventFilter(SDL_EventFilter filter);/*  Return the current event filter - can be used to "chain" filters.  If there is no event filter set, this function returns NULL.*/extern DECLSPEC SDL_EventFilter SDL_GetEventFilter(void);/*  This function allows you to set the state of processing certain events.  If 'state' is set to SDL_IGNORE, that event will be automatically dropped  from the event queue and will not event be filtered.  If 'state' is set to SDL_ENABLE, that event will be processed normally.  If 'state' is set to SDL_QUERY, SDL_EventState() will return the   current processing state of the specified event.*/#define SDL_QUERY	-1#define SDL_IGNORE	 0#define SDL_DISABLE	 0#define SDL_ENABLE	 1extern DECLSPEC Uint8 SDL_EventState(Uint8 type, int state);/* Ends C function definitions when using C++ */#ifdef __cplusplus}#endif#include "close_code.h"#endif /* _SDL_events_h */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人精品高清在线| 免费av网站大全久久| 蜜臀精品一区二区三区在线观看 | 337p日本欧洲亚洲大胆色噜噜| 综合欧美一区二区三区| 久久99精品久久久久久动态图| 色综合天天在线| 日本三级韩国三级欧美三级| 成人激情电影免费在线观看| 日韩一区二区三区在线观看| 亚洲激情综合网| 粉嫩av一区二区三区| 日韩一二三四区| 亚洲一区二区三区中文字幕 | 亚洲不卡av一区二区三区| 成人小视频在线观看| 精品欧美乱码久久久久久| 亚洲一级二级三级| 91猫先生在线| 国产精品久久看| 国产一区欧美日韩| 欧美一区二区三区免费在线看| 一区二区三区自拍| 99久久99久久综合| 国产精品日产欧美久久久久| 国产综合色在线视频区| 欧美一区二区视频在线观看2022| 亚洲综合男人的天堂| 北岛玲一区二区三区四区| 国产午夜一区二区三区| 激情综合网激情| 宅男噜噜噜66一区二区66| 亚洲国产成人精品视频| 色呦呦网站一区| 亚洲欧美一区二区不卡| 成人av网站在线| 中文字幕高清一区| 国产98色在线|日韩| 国产欧美综合色| 粉嫩aⅴ一区二区三区四区| 久久先锋资源网| 国产精品一区三区| 国产视频视频一区| 国产精品资源在线看| 久久久久久久久99精品| 国产一区二区三区不卡在线观看 | 91精品国产乱码| 青娱乐精品在线视频| 欧美一级二级在线观看| 麻豆成人免费电影| 精品国偷自产国产一区| 国产美女一区二区三区| 国产午夜精品久久| 成人手机在线视频| 综合久久给合久久狠狠狠97色| 91香蕉视频mp4| 一区二区视频在线| 欧美电影一区二区三区| 美女在线一区二区| 日韩免费看网站| 国产大陆亚洲精品国产| 亚洲国产精品国自产拍av| av午夜一区麻豆| 一区二区三区四区激情| 欧美精品视频www在线观看| 日韩电影一区二区三区| 精品久久久久久无| 国产成人在线网站| |精品福利一区二区三区| 色综合久久99| 日韩国产欧美在线视频| 精品三级av在线| 高清国产一区二区| 樱花草国产18久久久久| 91麻豆精品国产91久久久更新时间 | 99久久久无码国产精品| 另类的小说在线视频另类成人小视频在线| 中文字幕一区视频| 18欧美亚洲精品| 欧美视频一区二区三区| 国产一区二三区好的| 亚洲chinese男男1069| 中文字幕精品在线不卡| 精品人在线二区三区| 欧美乱妇20p| 777午夜精品视频在线播放| 色婷婷综合视频在线观看| hitomi一区二区三区精品| 紧缚捆绑精品一区二区| 免费观看日韩av| 黄色小说综合网站| 激情六月婷婷综合| 久久精品免费观看| 狠狠色丁香婷婷综合| 久久66热re国产| 麻豆国产精品视频| 麻豆成人av在线| 国产裸体歌舞团一区二区| 久草在线在线精品观看| 粉嫩久久99精品久久久久久夜| 91麻豆视频网站| 国产精品私房写真福利视频| 亚洲国产精品影院| 亚洲午夜影视影院在线观看| 国产精品少妇自拍| 午夜精品久久久久久久久久久| 在线一区二区三区| 樱桃视频在线观看一区| 99国产精品久久久久| 天堂影院一区二区| 欧美激情一区二区三区全黄| 欧美日韩一区不卡| 成人黄色在线视频| 男女性色大片免费观看一区二区| 国产精品色在线观看| 欧美精品123区| 92精品国产成人观看免费| 久久国产精品区| 欧美一区2区视频在线观看| 国产亚洲一本大道中文在线| 国产精品日韩成人| 日本欧美在线观看| 99在线精品观看| 日韩欧美一级二级三级久久久| 日日摸夜夜添夜夜添精品视频| 亚洲成a人在线观看| 韩国女主播成人在线| 一本到不卡精品视频在线观看| 欧美一级在线免费| 中文字幕国产一区二区| 日韩vs国产vs欧美| 国产91丝袜在线观看| 欧美日韩一区高清| 久久精品夜色噜噜亚洲aⅴ| 国产真实乱偷精品视频免| 色琪琪一区二区三区亚洲区| 久久久精品国产99久久精品芒果| 亚洲国产成人精品视频| 91美女福利视频| 国产精品国产馆在线真实露脸| 久热成人在线视频| 777奇米四色成人影色区| 一区二区在线免费| 91在线观看高清| 中文欧美字幕免费| 国产成人精品亚洲日本在线桃色| 精品美女在线播放| 人妖欧美一区二区| 国产亚洲综合在线| 亚洲已满18点击进入久久| www.99精品| 日韩欧美国产系列| 亚洲日穴在线视频| 欧美在线观看18| 成人禁用看黄a在线| 高清免费成人av| 亚洲福利一区二区三区| 国产精品毛片久久久久久| 国产亚洲一二三区| 国产日本亚洲高清| 欧美精品一区二区三区蜜臀| 精品国产伦理网| 久久先锋资源网| 中文字幕第一区| 国产精品视频九色porn| 亚洲婷婷国产精品电影人久久| 国产精品成人免费在线| 亚洲欧洲综合另类| 亚洲成人av一区| 五月天丁香久久| 日韩成人午夜精品| 久久国产精品露脸对白| 精品无人区卡一卡二卡三乱码免费卡| 久久不见久久见免费视频7| 色婷婷综合久久久久中文一区二区| 91香蕉视频mp4| 欧美三级资源在线| 欧美一级夜夜爽| 久久久久久久久蜜桃| 国产精品麻豆网站| 亚洲国产欧美日韩另类综合| 天堂av在线一区| 极品少妇xxxx偷拍精品少妇| 国产东北露脸精品视频| 99在线精品一区二区三区| 欧美偷拍一区二区| 日韩亚洲欧美在线观看| 久久久久久久久久电影| 亚洲人成网站色在线观看| 亚洲国产精品综合小说图片区| 美女精品一区二区| 国产激情视频一区二区在线观看| 91在线小视频| 欧美日韩视频在线第一区| 日韩精品一区二区三区在线| 国产性天天综合网| 亚洲一区精品在线| 久久99久久久久| a级高清视频欧美日韩| 欧美日韩亚洲丝袜制服|