fastevents.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #ifndef _FASTEVENTS_H_
  2. #define _FASTEVENTS_H_
  3. /*
  4. NET2 is a threaded, event based, network IO library for SDL.
  5. Copyright (C) 2002 Bob Pendleton
  6. This library is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU Lesser General Public License
  8. as published by the Free Software Foundation; either version 2.1
  9. of the License, or (at your option) any later version.
  10. This library is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public
  15. License along with this library; if not, write to the Free
  16. Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  17. 02111-1307 USA
  18. If you do not wish to comply with the terms of the LGPL please
  19. contact the author as other terms are available for a fee.
  20. Bob Pendleton
  21. Bob@Pendleton.com
  22. */
  23. #include "SDL.h"
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. int FE_Init(void); // Initialize FE
  28. void FE_Quit(void); // shutdown FE
  29. void FE_PumpEvents(void); // replacement for SDL_PumpEvents
  30. int FE_PollEvent(SDL_Event *event); // replacement for SDL_PollEvent
  31. int FE_WaitEvent(SDL_Event *event); // replacement for SDL_WaitEvent
  32. int FE_PushEvent(SDL_Event *event); // replacement for SDL_PushEvent
  33. char *FE_GetError(void); // get the last error
  34. #ifdef __cplusplus
  35. }
  36. #endif
  37. #endif