2002-11-18 21:37:58 +00:00
|
|
|
#ifndef SDL_ARCH_H
|
|
|
|
|
#define SDL_ARCH_H
|
|
|
|
|
|
|
|
|
|
/* All driver types should have a default, portable implementation, provided
|
|
|
|
|
* here. */
|
2003-07-22 07:47:27 +00:00
|
|
|
/* None of these SDL implementations run on Xbox, so I've commented
|
|
|
|
|
* out use of this header and added the #includes to each arch_*.h */
|
2003-07-23 20:51:46 +00:00
|
|
|
/*
|
|
|
|
|
* The basic design principle of arch is that a new platform can be up and running
|
|
|
|
|
* quickly using only arch_default, with OpenGL graphics and SDL input, and things can
|
|
|
|
|
* be overloaded later. That way, people don't have to learn how arch works
|
|
|
|
|
* until after they have the basic stuff running.
|
|
|
|
|
*
|
|
|
|
|
* For Xbox, let's leave this file alone, and special case stuff in arch_xbox.h.
|
|
|
|
|
*
|
|
|
|
|
* For LowLevelWindow, just undefine SUPPORT_OPENGL and don't link any LLW at
|
2003-07-23 21:19:43 +00:00
|
|
|
* all.
|
2002-11-18 21:37:58 +00:00
|
|
|
|
2003-07-23 20:51:46 +00:00
|
|
|
* For InputHandler, undef SUPPORT_SDL_INPUT and we won't create the SDL input
|
2003-07-23 21:19:43 +00:00
|
|
|
* handler. (We'll still include the header here, but it'll never be used.)
|
2003-07-23 20:51:46 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
/* We can have any number of input drivers. By default, use SDL for keyboards
|
|
|
|
|
* and joysticks. If you write your own handler for these devices types, or if
|
|
|
|
|
* SDL input doesn't work on your platform, undef SUPPORT_SDL_INPUT in your platform
|
|
|
|
|
* header. */
|
|
|
|
|
#define SUPPORT_SDL_INPUT
|
|
|
|
|
#include "InputHandler/InputHandler_SDL.h"
|
|
|
|
|
|
|
|
|
|
/* Load default fallback drivers; some of these may be overridden by arch-specific
|
|
|
|
|
* drivers. These are all singleton drivers--we never use more than one. */
|
2003-04-07 00:54:32 +00:00
|
|
|
/* XXX: null, none, Null--pick one */
|
2003-08-03 00:13:55 +00:00
|
|
|
#include "LoadingWindow/LoadingWindow_Null.h"
|
2003-01-24 23:09:31 +00:00
|
|
|
#include "ArchHooks/ArchHooks_none.h"
|
2003-02-12 01:54:01 +00:00
|
|
|
#include "Sound/RageSoundDriver_Null.h"
|
2003-11-16 04:45:12 +00:00
|
|
|
#include "Lights/LightsDriver_Null.h"
|
2003-11-20 11:55:45 +00:00
|
|
|
#include "Lights/LightsDriver_SystemMessage.h"
|
2003-12-17 10:20:53 +00:00
|
|
|
#include "MemoryCard/MemoryCardDriver_Null.h"
|
2003-07-22 07:47:27 +00:00
|
|
|
|
2003-07-23 21:19:43 +00:00
|
|
|
#if defined(SUPPORT_OPENGL)
|
|
|
|
|
#include "LowLevelWindow/LowLevelWindow_SDL.h"
|
|
|
|
|
#endif
|
2002-12-13 08:33:25 +00:00
|
|
|
|
2002-11-18 21:37:58 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*
|
2004-05-23 02:29:11 +00:00
|
|
|
* (c) 2002-2004 Glenn Maynard
|
|
|
|
|
* All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
|
|
|
* copy of this software and associated documentation files (the
|
|
|
|
|
* "Software"), to deal in the Software without restriction, including
|
|
|
|
|
* without limitation the rights to use, copy, modify, merge, publish,
|
|
|
|
|
* distribute, and/or sell copies of the Software, and to permit persons to
|
|
|
|
|
* whom the Software is furnished to do so, provided that the above
|
|
|
|
|
* copyright notice(s) and this permission notice appear in all copies of
|
|
|
|
|
* the Software and that both the above copyright notice(s) and this
|
|
|
|
|
* permission notice appear in supporting documentation.
|
|
|
|
|
*
|
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
|
|
|
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
|
|
|
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
|
|
|
|
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
|
|
|
|
|
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
|
|
|
|
|
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
|
|
|
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
|
|
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
|
|
* PERFORMANCE OF THIS SOFTWARE.
|
2002-11-18 21:37:58 +00:00
|
|
|
*/
|