提交 f4cf28db 编写于 作者: Z Zhang Rui

ijksdl: introduce SDL_eventaction

上级 eaf0c492
......@@ -23,7 +23,7 @@ LOCAL_C_CFLAGS += -std=c99
LOCAL_SRC_FILES += ijksdl_audio.c
LOCAL_SRC_FILES += ijksdl_error.c
LOCAL_SRC_FILES += ijksdl_event.c
LOCAL_SRC_FILES += ijksdl_events.c
LOCAL_SRC_FILES += ijksdl_mutex.c
LOCAL_SRC_FILES += ijksdl_stdinc.c
LOCAL_SRC_FILES += ijksdl_thread.c
......
......@@ -25,7 +25,7 @@
#define IJKSDL__IJKSDL_H
#include "ijksdl_audio.h"
#include "ijksdl_event.h"
#include "ijksdl_events.h"
#include "ijksdl_error.h"
#include "ijksdl_mutex.h"
#include "ijksdl_thread.h"
......
/*****************************************************************************
* ijksdl_event.c
* ijksdl_events.c
*****************************************************************************
*
* copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
......@@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "ijksdl_event.h"
#include "ijksdl_events.h"
int SDL_PushEvent(SDL_Event * event)
{
......
/*****************************************************************************
* ijksdl_event.h
* ijksdl_events.h
*****************************************************************************
*
* copyright (c) 2013 Zhang Rui <bbcallen@gmail.com>
......@@ -21,11 +21,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef IJKSDL__IJKSDL_EVENT_H
#define IJKSDL__IJKSDL_EVENT_H
#ifndef IJKSDL__IJKSDL_EVENTS_H
#define IJKSDL__IJKSDL_EVENTS_H
#include "ijksdl_stdinc.h"
/* SDL_events.h 55 */
typedef enum
{
SDL_FIRSTEVENT = 0, /**< Unused (do not remove) */
......@@ -118,8 +119,9 @@ typedef enum
*/
SDL_LASTEVENT = 0xFFFF
} SDL_EventType;
/* SDL_events.h 55 */
/* event.user.* */
/* SDL_events.h 463 */
typedef struct SDL_UserEvent
{
Uint32 type; /**< ::SDL_USEREVENT through ::SDL_NUMEVENTS-1 */
......@@ -129,7 +131,9 @@ typedef struct SDL_UserEvent
void *data1; /**< User defined data pointer */
void *data2; /**< User defined data pointer */
} SDL_UserEvent;
/* SDL_events.h 463 */
/* SDL_events.h 493 */
typedef union SDL_Event
{
Uint32 type; /**< Event type, shared with all events */
......@@ -161,6 +165,16 @@ typedef union SDL_Event
SDL_DropEvent drop; /**< Drag and drop event data */
#endif
} SDL_Event;
/* SDL_events.h 493 */
/* SDL_events.h 543 */
typedef enum
{
SDL_ADDEVENT,
SDL_PEEKEVENT,
SDL_GETEVENT
} SDL_eventaction;
/* SDL_events.h 543 */
int SDL_PushEvent(SDL_Event * event);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册