/* ========================================================================= */
-/* platform dependant joystick functions */
+/* platform dependent joystick functions */
/* ========================================================================= */
#if defined(PLATFORM_UNIX) && !defined(TARGET_SDL)
{
int i;
- for (i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
{
char *device_name = setup.input[i].joy.device_name;
/* ========================================================================= */
-/* platform independant joystick functions */
+/* platform independent joystick functions */
/* ========================================================================= */
#define TRANSLATE_JOYSYMBOL_TO_JOYNAME 0
{
*name = "[undefined]";
- for (i=0; i<6; i++)
+ for (i = 0; i < 6; i++)
{
if (*joysymbol == translate_joy[i].joysymbol)
{
{
*joysymbol = 0;
- for (i=0; i<6; i++)
+ for (i = 0; i < 6; i++)
{
if (strcmp(*name, translate_joy[i].name) == 0)
{
int i;
int distance = 100;
- for(i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
{
if (setup.input[i].joy.xleft >= setup.input[i].joy.xmiddle)
setup.input[i].joy.xleft = setup.input[i].joy.xmiddle - distance;
int i;
int result = 0;
- for (i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
result |= Joystick(i);
return result;
int AnyJoystickButton()
{
int i;
- int result;
+ int result = JOY_BUTTON_NOT_PRESSED;
- for (i=0; i<MAX_PLAYERS; i++)
+ for (i = 0; i < MAX_PLAYERS; i++)
{
result = JoystickButton(i);
if (result != JOY_BUTTON_NOT_PRESSED)