#include "../../SDL_internal.h"
#if SDL_VIDEO_DRIVER_PS2
#include "SDL_video.h"
#include "SDL_mouse.h"
#include "../SDL_sysvideo.h"
#include "../SDL_pixels_c.h"
#include "../../events/SDL_events_c.h"
#include "SDL_ps2video.h"
#include "SDL_hints.h"
static int PS2_SetDisplayMode(_THIS, SDL_VideoDisplay * display, SDL_DisplayMode * mode)
{
return 0;
}
static void PS2_DeleteDevice(SDL_VideoDevice * device)
{
SDL_free(device);
}
static int PS2_CreateWindow(_THIS, SDL_Window * window)
{
SDL_SetKeyboardFocus(window);
return 0;
}
static int PS2_VideoInit(_THIS)
{
SDL_VideoDisplay display;
SDL_DisplayMode current_mode;
SDL_zero(current_mode);
current_mode.w = 640;
current_mode.h = 480;
current_mode.refresh_rate = 60;
current_mode.format = SDL_PIXELFORMAT_ABGR8888;
current_mode.driverdata = NULL;
SDL_zero(display);
display.desktop_mode = current_mode;
display.current_mode = current_mode;
display.driverdata = NULL;
SDL_AddDisplayMode(&display, ¤t_mode);
SDL_AddVideoDisplay(&display, SDL_FALSE);
return 1;
}
static void PS2_VideoQuit(_THIS)
{
}
static void PS2_PumpEvents(_THIS)
{
}
static SDL_VideoDevice *PS2_CreateDevice(void)
{
SDL_VideoDevice *device;
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
if (!device) {
SDL_OutOfMemory();
return (0);
}
device->VideoInit = PS2_VideoInit;
device->VideoQuit = PS2_VideoQuit;
device->SetDisplayMode = PS2_SetDisplayMode;
device->CreateSDLWindow = PS2_CreateWindow;
device->PumpEvents = PS2_PumpEvents;
device->free = PS2_DeleteDevice;
return device;
}
VideoBootStrap PS2_bootstrap = {
"PS2",
"PS2 Video Driver",
PS2_CreateDevice
};
#endif