// (c) 1995-2014 by Artsoft Entertainment
// Holger Schemel
// info@artsoft.org
-// http://www.artsoft.org/
+// https://www.artsoft.org/
// ----------------------------------------------------------------------------
// joystick.c
// ============================================================================
#include "misc.h"
-/* ========================================================================= */
-/* platform independent joystick functions */
-/* ========================================================================= */
+// ============================================================================
+// platform independent joystick functions
+// ============================================================================
#define TRANSLATE_JOYSYMBOL_TO_JOYNAME 0
#define TRANSLATE_JOYNAME_TO_JOYSYMBOL 1
-void translate_joyname(int *joysymbol, char **name, int mode)
+static void translate_joyname(int *joysymbol, char **name, int mode)
{
static struct
{
return JoystickExt(player_nr, FALSE);
}
-int JoystickButtonExt(int player_nr, boolean use_as_joystick_nr)
+static int JoystickButtonExt(int player_nr, boolean use_as_joystick_nr)
{
static int last_joy_button[MAX_PLAYERS] = { 0, 0, 0, 0 };
int joy_button = (JoystickExt(player_nr, use_as_joystick_nr) & JOY_BUTTON);
void ActivateJoystick(void)
{
- /* reactivate temporarily deactivated joystick */
+ // reactivate temporarily deactivated joystick
if (joystick.status & JOYSTICK_AVAILABLE)
joystick.status |= JOYSTICK_ACTIVE;