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
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2002 by the person(s) listed below. All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* Glenn Maynard
|
|
|
|
|
*/
|