mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-26 01:04:17 +00:00
minor os/2 stuff merged from the bitwiseworks' fork
This commit is contained in:
@@ -702,10 +702,14 @@ static int joyGetEnv(struct _joycfg * joydata)
|
||||
char tempnumber[5]; /* Temporary place to put numeric texts */
|
||||
|
||||
joyenv = SDL_getenv("SDL_OS2_JOYSTICK");
|
||||
if (joyenv == NULL) return 0;
|
||||
if (joyenv == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Joystick Environment is defined! */
|
||||
while (*joyenv == ' ' && *joyenv != 0) joyenv++; /* jump spaces... */
|
||||
while (*joyenv == ' ' && *joyenv != 0) {
|
||||
joyenv++; /* jump spaces... */
|
||||
}
|
||||
|
||||
/* If the string name starts with '... get if fully */
|
||||
if (*joyenv == '\'') {
|
||||
|
||||
Reference in New Issue
Block a user