src/video/ataricommon/SDL_xbiosevents.c
changeset 1237 a8068adf156b
parent 820 0b9b4bf3c1e7
child 1310 a201a8c62522
     1.1 --- a/src/video/ataricommon/SDL_xbiosevents.c	Fri Jan 06 20:57:59 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_xbiosevents.c	Fri Jan 06 22:24:09 2006 +0000
     1.3 @@ -63,6 +63,11 @@
     1.4  		SDL_AtariXbios_joystick =
     1.5  		atari_prevmouseb = 0;
     1.6  
     1.7 +	if (vectors_mask==0) {
     1.8 +		SDL_AtariXbios_enabled=0;
     1.9 +		return;
    1.10 +	}
    1.11 +
    1.12  	/* Read IKBD vectors base */
    1.13  	kbdvecs=Kbdvbase();
    1.14  
    1.15 @@ -86,6 +91,10 @@
    1.16  {
    1.17  	void *oldpile;
    1.18  
    1.19 +	if (SDL_AtariXbios_enabled==0) {
    1.20 +		return;
    1.21 +	}
    1.22 +
    1.23  	/* Read IKBD vectors base */
    1.24  	kbdvecs=Kbdvbase();
    1.25  
    1.26 @@ -115,6 +124,10 @@
    1.27  
    1.28  void SDL_AtariXbios_PostMouseEvents(_THIS)
    1.29  {
    1.30 +	if (SDL_AtariXbios_enabled==0) {
    1.31 +		return;
    1.32 +	}
    1.33 +
    1.34  	/* Mouse motion ? */
    1.35  	if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) {
    1.36  		SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey);