Mercurial > sdl-ios-xcode
comparison src/video/ataricommon/SDL_xbiosevents.c @ 1237:a8068adf156b
Disable XBIOS driver for mouse and joystick under MiNT. Will write a driver for /dev/mouse later.
author | Patrice Mandin <patmandin@gmail.com> |
---|---|
date | Fri, 06 Jan 2006 22:24:09 +0000 |
parents | 0b9b4bf3c1e7 |
children | a201a8c62522 |
comparison
equal
deleted
inserted
replaced
1236:ed252764287a | 1237:a8068adf156b |
---|---|
61 SDL_AtariXbios_mousex = | 61 SDL_AtariXbios_mousex = |
62 SDL_AtariXbios_mousey = | 62 SDL_AtariXbios_mousey = |
63 SDL_AtariXbios_joystick = | 63 SDL_AtariXbios_joystick = |
64 atari_prevmouseb = 0; | 64 atari_prevmouseb = 0; |
65 | 65 |
66 if (vectors_mask==0) { | |
67 SDL_AtariXbios_enabled=0; | |
68 return; | |
69 } | |
70 | |
66 /* Read IKBD vectors base */ | 71 /* Read IKBD vectors base */ |
67 kbdvecs=Kbdvbase(); | 72 kbdvecs=Kbdvbase(); |
68 | 73 |
69 /* Go to supervisor mode */ | 74 /* Go to supervisor mode */ |
70 oldpile=(void *)Super(0); | 75 oldpile=(void *)Super(0); |
83 } | 88 } |
84 | 89 |
85 void SDL_AtariXbios_RestoreVectors(void) | 90 void SDL_AtariXbios_RestoreVectors(void) |
86 { | 91 { |
87 void *oldpile; | 92 void *oldpile; |
93 | |
94 if (SDL_AtariXbios_enabled==0) { | |
95 return; | |
96 } | |
88 | 97 |
89 /* Read IKBD vectors base */ | 98 /* Read IKBD vectors base */ |
90 kbdvecs=Kbdvbase(); | 99 kbdvecs=Kbdvbase(); |
91 | 100 |
92 /* Go to supervisor mode */ | 101 /* Go to supervisor mode */ |
113 } | 122 } |
114 } | 123 } |
115 | 124 |
116 void SDL_AtariXbios_PostMouseEvents(_THIS) | 125 void SDL_AtariXbios_PostMouseEvents(_THIS) |
117 { | 126 { |
127 if (SDL_AtariXbios_enabled==0) { | |
128 return; | |
129 } | |
130 | |
118 /* Mouse motion ? */ | 131 /* Mouse motion ? */ |
119 if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) { | 132 if (SDL_AtariXbios_mousex || SDL_AtariXbios_mousey) { |
120 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); | 133 SDL_PrivateMouseMotion(0, 1, SDL_AtariXbios_mousex, SDL_AtariXbios_mousey); |
121 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; | 134 SDL_AtariXbios_mousex = SDL_AtariXbios_mousey = 0; |
122 } | 135 } |