-cvar_t in_joystick = {CVAR_SAVE, "joystick","0"};
-cvar_t joy_name = {0, "joyname", "joystick"};
-cvar_t joy_advanced = {0, "joyadvanced", "0"};
-cvar_t joy_advaxisx = {0, "joyadvaxisx", "0"};
-cvar_t joy_advaxisy = {0, "joyadvaxisy", "0"};
-cvar_t joy_advaxisz = {0, "joyadvaxisz", "0"};
-cvar_t joy_advaxisr = {0, "joyadvaxisr", "0"};
-cvar_t joy_advaxisu = {0, "joyadvaxisu", "0"};
-cvar_t joy_advaxisv = {0, "joyadvaxisv", "0"};
-cvar_t joy_forwardthreshold = {0, "joyforwardthreshold", "0.15"};
-cvar_t joy_sidethreshold = {0, "joysidethreshold", "0.15"};
-cvar_t joy_pitchthreshold = {0, "joypitchthreshold", "0.15"};
-cvar_t joy_yawthreshold = {0, "joyyawthreshold", "0.15"};
-cvar_t joy_forwardsensitivity = {0, "joyforwardsensitivity", "-1.0"};
-cvar_t joy_sidesensitivity = {0, "joysidesensitivity", "-1.0"};
-cvar_t joy_pitchsensitivity = {0, "joypitchsensitivity", "1.0"};
-cvar_t joy_yawsensitivity = {0, "joyyawsensitivity", "-1.0"};
-cvar_t joy_wwhack1 = {0, "joywwhack1", "0.0"};
-cvar_t joy_wwhack2 = {0, "joywwhack2", "0.0"};
-
-qboolean joy_avail, joy_advancedinit, joy_haspov;
-DWORD joy_oldbuttonstate, joy_oldpovstate;
-
-int joy_id;
-DWORD joy_flags;
-DWORD joy_numbuttons;
+static cvar_t in_joystick = {CVAR_SAVE, "joystick","0"};
+static cvar_t joy_name = {0, "joyname", "joystick"};
+static cvar_t joy_advanced = {0, "joyadvanced", "0"};
+static cvar_t joy_advaxisx = {0, "joyadvaxisx", "0"};
+static cvar_t joy_advaxisy = {0, "joyadvaxisy", "0"};
+static cvar_t joy_advaxisz = {0, "joyadvaxisz", "0"};
+static cvar_t joy_advaxisr = {0, "joyadvaxisr", "0"};
+static cvar_t joy_advaxisu = {0, "joyadvaxisu", "0"};
+static cvar_t joy_advaxisv = {0, "joyadvaxisv", "0"};
+static cvar_t joy_forwardthreshold = {0, "joyforwardthreshold", "0.15"};
+static cvar_t joy_sidethreshold = {0, "joysidethreshold", "0.15"};
+static cvar_t joy_pitchthreshold = {0, "joypitchthreshold", "0.15"};
+static cvar_t joy_yawthreshold = {0, "joyyawthreshold", "0.15"};
+static cvar_t joy_forwardsensitivity = {0, "joyforwardsensitivity", "-1.0"};
+static cvar_t joy_sidesensitivity = {0, "joysidesensitivity", "-1.0"};
+static cvar_t joy_pitchsensitivity = {0, "joypitchsensitivity", "1.0"};
+static cvar_t joy_yawsensitivity = {0, "joyyawsensitivity", "-1.0"};
+static cvar_t joy_wwhack1 = {0, "joywwhack1", "0.0"};
+static cvar_t joy_wwhack2 = {0, "joywwhack2", "0.0"};
+
+static qboolean joy_avail, joy_advancedinit, joy_haspov;
+static DWORD joy_oldbuttonstate, joy_oldpovstate;
+
+static int joy_id;
+static DWORD joy_flags;
+static DWORD joy_numbuttons;