Skip to content

Only initialise a joystick when they're enabled #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tjone270
Copy link

For some reason this would cause a 10-15 delay on launch on my PC.

I can't see any reason IN_InitJoystick() should be called if in_joystick is set to 0, so skip calling it unless the cvar is non-zero.

For some reason this would cause a 10-15 delay on launch on my PC.

I can't see any reason `IN_InitJoystick()` should be called if `in_joystick` is set to `0`, so skip calling it unless the cvar is non-zero.
@zturtleman
Copy link

You could try downloading the latest SDL 2 release (2.32.4) for win32-x64 and rename SDL2.dll to SDL264.dll and place it in your ioquake3 directory to see if it solves the issue without changing ioquake3.

I've seen workarounds made in SDL for cases of accessing devices (such as keyboards and mice) that cause a 10-15 second delay. So this may be solved by updating SDL or reporting the device causing the issue to SDL to be ignored as a joystick by all SDL applications.

It's useful for a UI to display a list of joysticks even if using a joystick isn't enabled. It's stored in in_availableJoysticks cvar though ioq3's UI doesn't display it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants