Formatting update
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402120
This commit is contained in:
parent
d0a80f6b53
commit
4ecb44b166
27 changed files with 310 additions and 282 deletions
|
@ -147,7 +147,8 @@ extern DECLSPEC SDL_Surface *SDLCALL SDL_DisplayFormatAlpha(SDL_Surface *
|
||||||
surface);
|
surface);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
|
extern DECLSPEC void SDLCALL SDL_WM_SetCaption(const char *title,
|
||||||
const char *icon);
|
const char *icon);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title, const char **icon);
|
extern DECLSPEC void SDLCALL SDL_WM_GetCaption(const char **title,
|
||||||
|
const char **icon);
|
||||||
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
|
extern DECLSPEC void SDLCALL SDL_WM_SetIcon(SDL_Surface * icon, Uint8 * mask);
|
||||||
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
|
extern DECLSPEC int SDLCALL SDL_WM_IconifyWindow(void);
|
||||||
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
|
extern DECLSPEC int SDLCALL SDL_WM_ToggleFullScreen(SDL_Surface * surface);
|
||||||
|
|
|
@ -280,8 +280,7 @@ Core_OpenAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
result = AudioUnitSetProperty(outputAudioUnit,
|
result = AudioUnitSetProperty(outputAudioUnit,
|
||||||
kAudioUnitProperty_StreamFormat,
|
kAudioUnitProperty_StreamFormat,
|
||||||
kAudioUnitScope_Input,
|
kAudioUnitScope_Input,
|
||||||
0,
|
0, &strdesc, sizeof(strdesc));
|
||||||
&strdesc, sizeof (strdesc));
|
|
||||||
CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)")
|
CHECK_RESULT("AudioUnitSetProperty (kAudioUnitProperty_StreamFormat)")
|
||||||
/* Set the audio callback */
|
/* Set the audio callback */
|
||||||
callback.inputProc = audioCallback;
|
callback.inputProc = audioCallback;
|
||||||
|
|
|
@ -146,7 +146,8 @@ SDL_MintAudio_SearchFrequency(_THIS, int desired_freq)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if FPU is present */
|
/* Check if FPU is present */
|
||||||
void SDL_MintAudio_CheckFpu(void)
|
void
|
||||||
|
SDL_MintAudio_CheckFpu(void)
|
||||||
{
|
{
|
||||||
unsigned long cookie_fpu;
|
unsigned long cookie_fpu;
|
||||||
|
|
||||||
|
|
|
@ -218,7 +218,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
int i, masterprediv, sfreq;
|
int i, masterprediv, sfreq;
|
||||||
unsigned long masterclock;
|
unsigned long masterclock;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
@ -274,7 +275,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
||||||
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
|
|
@ -328,7 +328,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
||||||
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
|
|
@ -225,7 +225,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
int i;
|
int i;
|
||||||
unsigned long masterclock, masterprediv;
|
unsigned long masterclock, masterprediv;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
@ -299,7 +300,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
||||||
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
|
|
@ -206,7 +206,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
@ -239,7 +240,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
||||||
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
|
|
@ -360,7 +360,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
int i;
|
int i;
|
||||||
Uint32 extclock;
|
Uint32 extclock;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "asked: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
@ -406,7 +407,8 @@ Mint_CheckAudio(_THIS, SDL_AudioSpec * spec)
|
||||||
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
MINTAUDIO_numfreq = SDL_MintAudio_SearchFrequency(this, spec->freq);
|
||||||
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
spec->freq = MINTAUDIO_frequencies[MINTAUDIO_numfreq].frequency;
|
||||||
|
|
||||||
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ", SDL_AUDIO_BITSIZE(spec->format)));
|
DEBUG_PRINT((DEBUG_NAME "obtained: %d bits, ",
|
||||||
|
SDL_AUDIO_BITSIZE(spec->format)));
|
||||||
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
DEBUG_PRINT(("float=%d, ", SDL_AUDIO_ISFLOAT(spec->format)));
|
||||||
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
DEBUG_PRINT(("signed=%d, ", SDL_AUDIO_ISSIGNED(spec->format)));
|
||||||
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
DEBUG_PRINT(("big endian=%d, ", SDL_AUDIO_ISBIGENDIAN(spec->format)));
|
||||||
|
|
|
@ -434,21 +434,29 @@ SDL_SYS_JoystickUpdate(SDL_Joystick * joystick)
|
||||||
numjoypad = 0;
|
numjoypad = 0;
|
||||||
switch (numjoystick) {
|
switch (numjoystick) {
|
||||||
case PORTA_PAD0:
|
case PORTA_PAD0:
|
||||||
numjoypad = 0; break;
|
numjoypad = 0;
|
||||||
|
break;
|
||||||
case PORTA_PAD1:
|
case PORTA_PAD1:
|
||||||
numjoypad = 1; break;
|
numjoypad = 1;
|
||||||
|
break;
|
||||||
case PORTA_PAD2:
|
case PORTA_PAD2:
|
||||||
numjoypad = 2; break;
|
numjoypad = 2;
|
||||||
|
break;
|
||||||
case PORTA_PAD3:
|
case PORTA_PAD3:
|
||||||
numjoypad = 3; break;
|
numjoypad = 3;
|
||||||
|
break;
|
||||||
case PORTB_PAD0:
|
case PORTB_PAD0:
|
||||||
numjoypad = 4; break;
|
numjoypad = 4;
|
||||||
|
break;
|
||||||
case PORTB_PAD1:
|
case PORTB_PAD1:
|
||||||
numjoypad = 5; break;
|
numjoypad = 5;
|
||||||
|
break;
|
||||||
case PORTB_PAD2:
|
case PORTB_PAD2:
|
||||||
numjoypad = 6; break;
|
numjoypad = 6;
|
||||||
|
break;
|
||||||
case PORTB_PAD3:
|
case PORTB_PAD3:
|
||||||
numjoypad = 7; break;
|
numjoypad = 7;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
curstate = jp_joypads[numjoypad];
|
curstate = jp_joypads[numjoypad];
|
||||||
|
|
|
@ -208,8 +208,7 @@ Uint16 SDL_AtariToUnicodeTable[256] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
SDL_keysym *
|
SDL_keysym *
|
||||||
SDL_Atari_TranslateKey(int scancode, SDL_keysym *keysym,
|
SDL_Atari_TranslateKey(int scancode, SDL_keysym * keysym, SDL_bool pressed)
|
||||||
SDL_bool pressed)
|
|
||||||
{
|
{
|
||||||
int asciicode = 0;
|
int asciicode = 0;
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,8 @@
|
||||||
|
|
||||||
/* Special keys state */
|
/* Special keys state */
|
||||||
#ifndef K_RSHIFT
|
#ifndef K_RSHIFT
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
K_RSHIFT = 0,
|
K_RSHIFT = 0,
|
||||||
K_LSHIFT,
|
K_LSHIFT,
|
||||||
K_CTRL,
|
K_CTRL,
|
||||||
|
|
|
@ -79,7 +79,8 @@ AtariBios_PumpEvents(_THIS)
|
||||||
while (Bconstat(_CON)) {
|
while (Bconstat(_CON)) {
|
||||||
unsigned long key_pressed;
|
unsigned long key_pressed;
|
||||||
key_pressed = Bconin(_CON);
|
key_pressed = Bconin(_CON);
|
||||||
bios_currentkeyboard[(key_pressed>>16)&(ATARIBIOS_MAXKEYS-1)]=0xFF;
|
bios_currentkeyboard[(key_pressed >> 16) & (ATARIBIOS_MAXKEYS - 1)] =
|
||||||
|
0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read special keys */
|
/* Read special keys */
|
||||||
|
@ -95,7 +96,8 @@ AtariBios_PumpEvents(_THIS)
|
||||||
/* Key unpressed ? */
|
/* Key unpressed ? */
|
||||||
if (bios_previouskeyboard[i] && !bios_currentkeyboard[i])
|
if (bios_previouskeyboard[i] && !bios_currentkeyboard[i])
|
||||||
SDL_PrivateKeyboard(SDL_RELEASED,
|
SDL_PrivateKeyboard(SDL_RELEASED,
|
||||||
SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
|
SDL_Atari_TranslateKey(i, &keysym,
|
||||||
|
SDL_FALSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (use_dev_mouse) {
|
if (use_dev_mouse) {
|
||||||
|
|
|
@ -45,7 +45,8 @@ static unsigned char gemdos_currentkeyboard[ATARIBIOS_MAXKEYS];
|
||||||
static unsigned char gemdos_previouskeyboard[ATARIBIOS_MAXKEYS];
|
static unsigned char gemdos_previouskeyboard[ATARIBIOS_MAXKEYS];
|
||||||
static SDL_bool use_dev_mouse = SDL_FALSE;
|
static SDL_bool use_dev_mouse = SDL_FALSE;
|
||||||
|
|
||||||
enum {
|
enum
|
||||||
|
{
|
||||||
DEV_BUSY = 0,
|
DEV_BUSY = 0,
|
||||||
DEV_READY
|
DEV_READY
|
||||||
};
|
};
|
||||||
|
@ -86,7 +87,8 @@ AtariGemdos_PumpEvents(_THIS)
|
||||||
while (Cconis() != DEV_BUSY) {
|
while (Cconis() != DEV_BUSY) {
|
||||||
unsigned long key_pressed;
|
unsigned long key_pressed;
|
||||||
key_pressed = Cnecin();
|
key_pressed = Cnecin();
|
||||||
gemdos_currentkeyboard[(key_pressed>>16)&(ATARIBIOS_MAXKEYS-1)]=0xFF;
|
gemdos_currentkeyboard[(key_pressed >> 16) & (ATARIBIOS_MAXKEYS - 1)]
|
||||||
|
= 0xFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read special keys */
|
/* Read special keys */
|
||||||
|
@ -102,7 +104,8 @@ AtariGemdos_PumpEvents(_THIS)
|
||||||
/* Key unpressed ? */
|
/* Key unpressed ? */
|
||||||
if (gemdos_previouskeyboard[i] && !gemdos_currentkeyboard[i])
|
if (gemdos_previouskeyboard[i] && !gemdos_currentkeyboard[i])
|
||||||
SDL_PrivateKeyboard(SDL_RELEASED,
|
SDL_PrivateKeyboard(SDL_RELEASED,
|
||||||
SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
|
SDL_Atari_TranslateKey(i, &keysym,
|
||||||
|
SDL_FALSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (use_dev_mouse) {
|
if (use_dev_mouse) {
|
||||||
|
|
|
@ -46,7 +46,8 @@ static Uint16 atari_prevmouseb; /* save state of mouse buttons */
|
||||||
void
|
void
|
||||||
AtariIkbd_InitOSKeymap(_THIS)
|
AtariIkbd_InitOSKeymap(_THIS)
|
||||||
{
|
{
|
||||||
SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED, sizeof(SDL_AtariIkbd_keyboard));
|
SDL_memset(SDL_AtariIkbd_keyboard, KEY_UNDEFINED,
|
||||||
|
sizeof(SDL_AtariIkbd_keyboard));
|
||||||
|
|
||||||
/* Now install our handler */
|
/* Now install our handler */
|
||||||
SDL_AtariIkbd_mouseb = SDL_AtariIkbd_mousex = SDL_AtariIkbd_mousey = 0;
|
SDL_AtariIkbd_mouseb = SDL_AtariIkbd_mousex = SDL_AtariIkbd_mousey = 0;
|
||||||
|
@ -90,7 +91,8 @@ AtariIkbd_PumpEvents(_THIS)
|
||||||
/* Key released ? */
|
/* Key released ? */
|
||||||
if (SDL_AtariIkbd_keyboard[i] == KEY_RELEASED) {
|
if (SDL_AtariIkbd_keyboard[i] == KEY_RELEASED) {
|
||||||
SDL_PrivateKeyboard(SDL_RELEASED,
|
SDL_PrivateKeyboard(SDL_RELEASED,
|
||||||
SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
|
SDL_Atari_TranslateKey(i, &keysym,
|
||||||
|
SDL_FALSE));
|
||||||
SDL_AtariIkbd_keyboard[i] = KEY_UNDEFINED;
|
SDL_AtariIkbd_keyboard[i] = KEY_UNDEFINED;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -152,8 +152,10 @@ SDL_AtariXbios_PostMouseEvents(_THIS, SDL_bool buttonEvents)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SDL_AtariXbios_LockMousePosition(SDL_bool lockPosition)
|
void
|
||||||
|
SDL_AtariXbios_LockMousePosition(SDL_bool lockPosition)
|
||||||
{
|
{
|
||||||
SDL_AtariXbios_mouselock = lockPosition;
|
SDL_AtariXbios_mouselock = lockPosition;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* vi: set ts=4 sw=4 expandtab: */
|
/* vi: set ts=4 sw=4 expandtab: */
|
||||||
|
|
|
@ -147,7 +147,8 @@ GEM_PumpEvents(_THIS)
|
||||||
/* Key unpressed ? */
|
/* Key unpressed ? */
|
||||||
if (gem_previouskeyboard[i] && !gem_currentkeyboard[i])
|
if (gem_previouskeyboard[i] && !gem_currentkeyboard[i])
|
||||||
SDL_PrivateKeyboard(SDL_RELEASED,
|
SDL_PrivateKeyboard(SDL_RELEASED,
|
||||||
SDL_Atari_TranslateKey(i, &keysym, SDL_FALSE));
|
SDL_Atari_TranslateKey(i, &keysym,
|
||||||
|
SDL_FALSE));
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_memcpy(gem_previouskeyboard, gem_currentkeyboard,
|
SDL_memcpy(gem_previouskeyboard, gem_currentkeyboard,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue