From cf07e88ac83b89251393c7a1c9c6ac1a581ef5b4 Mon Sep 17 00:00:00 2001 From: Lockl00p <97256723+Lockl00p@users.noreply.github.com> Date: Thu, 23 May 2024 20:01:48 -0500 Subject: [PATCH] Automatically enable joystick support Or else, you'd need an autoexec file for first time setup. --- vid_shared.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vid_shared.c b/vid_shared.c index ba0ab58c..a974afca 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -83,7 +83,11 @@ cvar_t joy_xinputavailable = {CF_CLIENT | CF_READONLY, "joy_xinputavailable", "0 #endif cvar_t joy_active = {CF_CLIENT | CF_READONLY, "joy_active", "0", "indicates that a joystick is active (detected and enabled)"}; cvar_t joy_detected = {CF_CLIENT | CF_READONLY, "joy_detected", "0", "number of joysticks detected by engine"}; +#ifdef __SWITCH__ +cvar_t joy_enable = {CF_CLIENT | CF_ARCHIVE, "joy_enable", "1", "enables joystick support"}; +#else cvar_t joy_enable = {CF_CLIENT | CF_ARCHIVE, "joy_enable", "0", "enables joystick support"}; +#endif cvar_t joy_index = {CF_CLIENT, "joy_index", "0", "selects which joystick to use if you have multiple (0 uses the first controller, 1 uses the second, ...)"}; cvar_t joy_axisforward = {CF_CLIENT, "joy_axisforward", "1", "which joystick axis to query for forward/backward movement"}; cvar_t joy_axisside = {CF_CLIENT, "joy_axisside", "0", "which joystick axis to query for right/left movement"}; -- 2.39.2