00001 #ifndef WT_FASTEVENTS_H 00002 #define WT_FASTEVENTS_H 00003 /* 00004 NET2 is a threaded, event based, network IO library for SDL. 00005 Copyright (C) 2002 Bob Pendleton 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public License 00009 as published by the Free Software Foundation; either version 2.1 00010 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free 00019 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 00020 02111-1307 USA 00021 00022 If you do not wish to comply with the terms of the LGPL please 00023 contact the author as other terms are available for a fee. 00024 00025 Bob Pendleton 00026 Bob@Pendleton.com 00027 */ 00028 00029 #include <SDL/SDL_events.h> 00030 00031 #ifdef __cplusplus 00032 extern "C" { 00033 #endif 00034 00035 int FE_Init(); // Initialize FE 00036 void FE_Quit(); // shutdown FE 00037 00038 void FE_PumpEvents(); // replacement for SDL_PumpEvents 00039 int FE_PollEvent(SDL_Event *event); // replacement for SDL_PollEvent 00040 int FE_WaitEvent(SDL_Event *event); // replacement for SDL_WaitEvent 00041 int FE_PushEvent(SDL_Event *event); // replacement for SDL_PushEvent 00042 00043 const char *FE_GetError(); // get the last error 00044 #ifdef __cplusplus 00045 } 00046 #endif 00047 00048 #endif
This document is licensed under the terms of the GNU Free Documentation License and may be freely distributed under the conditions given by this license.