this should fix SDL_Joystick lag [build]

This commit is contained in:
Agent X 2025-05-04 18:41:38 -04:00
parent 8fc78a07ee
commit 954af5bc0a
4 changed files with 7 additions and 8 deletions

View file

@ -10797,7 +10797,7 @@ COOP_OBJ_FLAG_NON_SYNC = (1 << 2)
COOP_OBJ_FLAG_INITIALIZED = (1 << 3) COOP_OBJ_FLAG_INITIALIZED = (1 << 3)
--- @type string --- @type string
SM64COOPDX_VERSION = "v1.3.1" SM64COOPDX_VERSION = "v1.3.2"
--- @type string --- @type string
VERSION_TEXT = "v" VERSION_TEXT = "v"
@ -10806,7 +10806,7 @@ VERSION_TEXT = "v"
VERSION_NUMBER = 40 VERSION_NUMBER = 40
--- @type integer --- @type integer
MINOR_VERSION_NUMBER = 1 MINOR_VERSION_NUMBER = 2
--- @type integer --- @type integer
MAX_VERSION_LENGTH = 128 MAX_VERSION_LENGTH = 128

View file

@ -225,9 +225,8 @@ static void controller_sdl_read(OSContPad *pad) {
if (sdl_cntrl != NULL) { if (sdl_cntrl != NULL) {
sdl_haptic = controller_sdl_init_haptics(configGamepadNumber); sdl_haptic = controller_sdl_init_haptics(configGamepadNumber);
} }
} else { } else if (!sdl_joystick) {
sdl_joystick = SDL_JoystickOpen(configGamepadNumber); sdl_joystick = SDL_JoystickOpen(configGamepadNumber);
if (!sdl_joystick) { return; }
} }
} }

View file

@ -4379,9 +4379,9 @@ char gSmluaConstants[] = ""
"COOP_OBJ_FLAG_LUA=(1 << 1)\n" "COOP_OBJ_FLAG_LUA=(1 << 1)\n"
"COOP_OBJ_FLAG_NON_SYNC=(1 << 2)\n" "COOP_OBJ_FLAG_NON_SYNC=(1 << 2)\n"
"COOP_OBJ_FLAG_INITIALIZED=(1 << 3)\n" "COOP_OBJ_FLAG_INITIALIZED=(1 << 3)\n"
"SM64COOPDX_VERSION='v1.3.1'\n" "SM64COOPDX_VERSION='v1.3.2'\n"
"VERSION_TEXT='v'\n" "VERSION_TEXT='v'\n"
"VERSION_NUMBER=40\n" "VERSION_NUMBER=40\n"
"MINOR_VERSION_NUMBER=1\n" "MINOR_VERSION_NUMBER=2\n"
"MAX_VERSION_LENGTH=128\n" "MAX_VERSION_LENGTH=128\n"
; ;

View file

@ -1,12 +1,12 @@
#ifndef VERSION_H #ifndef VERSION_H
#define VERSION_H #define VERSION_H
#define SM64COOPDX_VERSION "v1.3.1" #define SM64COOPDX_VERSION "v1.3.2"
// internal version // internal version
#define VERSION_TEXT "v" #define VERSION_TEXT "v"
#define VERSION_NUMBER 40 #define VERSION_NUMBER 40
#define MINOR_VERSION_NUMBER 1 #define MINOR_VERSION_NUMBER 2
#if defined(VERSION_JP) #if defined(VERSION_JP)
#define VERSION_REGION "JP" #define VERSION_REGION "JP"