diff src/video/gem/SDL_gemvideo.c @ 305:9c6613983e85

Atari port cleanups from Patrice
author Sam Lantinga <slouken@libsdl.org>
date Sun, 10 Mar 2002 03:33:59 +0000
parents f6ffac90895c
children 189a6a3416c7
line wrap: on
line diff
--- a/src/video/gem/SDL_gemvideo.c	Sun Mar 10 03:25:47 2002 +0000
+++ b/src/video/gem/SDL_gemvideo.c	Sun Mar 10 03:33:59 2002 +0000
@@ -60,6 +60,7 @@
 #include "SDL_gemevents_c.h"
 #include "SDL_gemmouse_c.h"
 #include "SDL_gemwm_c.h"
+#include "SDL_xbiosevents_c.h"
 
 /* Defines */
 
@@ -176,6 +177,9 @@
 	device->WarpWMCursor = GEM_WarpWMCursor;
 	device->CheckMouseMode = GEM_CheckMouseMode;
 
+	/* Joystick */
+	SDL_AtariXbios_InstallVectors(ATARI_XBIOS_JOYSTICKEVENTS);
+
 	device->free = GEM_DeleteDevice;
 
 	return device;
@@ -937,6 +941,8 @@
 */
 void GEM_VideoQuit(_THIS)
 {
+	SDL_AtariXbios_RestoreVectors();
+
 	GEM_FreeBuffers(this);
 
 	if (GEM_locked) {