mirror of
https://github.com/yawut/SDL.git
synced 2026-09-09 09:36:14 -05:00
Declare volatile variables modified by interrupt routines
This commit is contained in:
@@ -119,10 +119,10 @@ enum {
|
||||
extern SDL_AudioDevice *SDL_MintAudio_device;
|
||||
extern Uint8 *SDL_MintAudio_audiobuf[2]; /* Pointers to buffers */
|
||||
extern unsigned long SDL_MintAudio_audiosize; /* Length of audio buffer=spec->size */
|
||||
extern unsigned short SDL_MintAudio_numbuf; /* Buffer to play */
|
||||
extern unsigned short SDL_MintAudio_mutex;
|
||||
extern volatile unsigned short SDL_MintAudio_numbuf; /* Buffer to play */
|
||||
extern volatile unsigned short SDL_MintAudio_mutex;
|
||||
extern cookie_stfa_t *SDL_MintAudio_stfa;
|
||||
extern unsigned long SDL_MintAudio_clocktics;
|
||||
extern volatile unsigned long SDL_MintAudio_clocktics;
|
||||
|
||||
/* MiNT thread variables */
|
||||
extern SDL_bool SDL_MintAudio_mint_present;
|
||||
|
||||
@@ -44,14 +44,14 @@
|
||||
|
||||
/* Variables */
|
||||
|
||||
extern Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */
|
||||
extern Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */
|
||||
extern Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */
|
||||
extern Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */
|
||||
extern Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */
|
||||
extern volatile Uint8 SDL_AtariIkbd_keyboard[128]; /* Keyboard table */
|
||||
extern volatile Uint16 SDL_AtariIkbd_mouseb; /* Mouse on port 0, buttons */
|
||||
extern volatile Sint16 SDL_AtariIkbd_mousex; /* Mouse X relative motion */
|
||||
extern volatile Sint16 SDL_AtariIkbd_mousey; /* Mouse Y relative motion */
|
||||
extern volatile Uint16 SDL_AtariIkbd_joystick; /* Joystick on port 1 */
|
||||
|
||||
extern Uint16 SDL_AtariIkbd_enabled; /* For joystick driver to know
|
||||
if this is usable */
|
||||
/* For joystick driver to know if this is usable */
|
||||
extern Uint16 SDL_AtariIkbd_enabled;
|
||||
|
||||
/* Functions */
|
||||
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
|
||||
/* Variables */
|
||||
|
||||
extern Uint16 SDL_AtariXbios_mouseb; /* buttons */
|
||||
extern Sint16 SDL_AtariXbios_mousex; /* X relative motion */
|
||||
extern Sint16 SDL_AtariXbios_mousey; /* Y relative motion */
|
||||
extern Uint16 SDL_AtariXbios_joystick; /* Joystick */
|
||||
extern volatile Uint16 SDL_AtariXbios_mouseb; /* buttons */
|
||||
extern volatile Sint16 SDL_AtariXbios_mousex; /* X relative motion */
|
||||
extern volatile Sint16 SDL_AtariXbios_mousey; /* Y relative motion */
|
||||
extern volatile Uint16 SDL_AtariXbios_joystick; /* Joystick */
|
||||
|
||||
/* Functions */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user