projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed joystick naming convention from file descriptor to joystick number
[rocksndiamonds.git]
/
src
/
libgame
/
sdl.c
diff --git
a/src/libgame/sdl.c
b/src/libgame/sdl.c
index ee43dc05b0c1b1795328b129d1ca0a563f0398e2..04a098cdaf0af24fc5af18895ec936123f2bb63d 100644
(file)
--- a/
src/libgame/sdl.c
+++ b/
src/libgame/sdl.c
@@
-2913,8
+2913,8
@@
void SDLInitJoysticks()
joystick_nr = -1;
}
joystick_nr = -1;
}
- /*
misuse joystick file descriptor variable to store joystick numb
er */
- joystick.
fd
[i] = joystick_nr;
+ /*
store configured joystick number for each play
er */
+ joystick.
nr
[i] = joystick_nr;
}
/* now open all connected joysticks (regardless if configured or not) */
}
/* now open all connected joysticks (regardless if configured or not) */