Skip to content
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

Dead zone ? #30

Closed
Wronschien opened this issue Aug 12, 2022 · 6 comments
Closed

Dead zone ? #30

Wronschien opened this issue Aug 12, 2022 · 6 comments

Comments

@Wronschien
Copy link

Hello, is it possible to define a dead zone for an axis ?
I couldn't find any setting about that.
Thank you.

@samuelgr
Copy link
Owner

There isn't a setting available directly via Xidi.

Deadzone is a property that applications can change via DirectInput, and Xidi will honor whatever the application requests. Some applications expose it as a setting that users can configure.

@Wronschien
Copy link
Author

Well I was afraid so. My problem is with the game Omikron which doesn't provide this setting. It is much too sensitive to the axis movement, it behaves quite erratically even in the menus. I think I will simply bind the left stick to the keyboard arrows, this should hide it from the game.

Thanks for your reply.

@v00d00m4n
Copy link

v00d00m4n commented Aug 26, 2022

Most of old games does not provide deadzone setting, they rely on DirectInput deadzone calibration made with joy.cpl, but unfortunately since Windows Xp or Vista directinput deadzone settings was completely broken or removed and there are some games that does not have even hardcoded deadzone, like for example Need for Speed most wanted (one i clearly remember that had my cars steering to left because of lack of deadzone), and most of games had no internal measures to set it, so the only way to set deadzone is to do it via wrapper, such XIDI, its really a must have feature, and pretty easy to add. Just add extra ini setting for each asix or half of axis deadzone, and add it to polling formula (also you can use separate setting - forcedeadzone which will use alternate formula) to shift zero value.

P.S. - Im not sure if Xidi is calling usual Xinput dll, but if it does it should be compatible with XinputPlus which provides decent deadzone settings to use as workaround for now.

@Wronschien
Copy link
Author

That's an idea xinputplus, I knew about it but didn't think of using it alongside xidi. It may work but for now I stored the game away and don't know when I'll actually play it. But I should try that next time the problem occurs, thanks !

@samuelgr
Copy link
Owner

samuelgr commented Oct 8, 2022

The other thing is that WinMM doesn't provide a way of configuring deadzone. I think the right answer here is to make it configurable via the Xidi configuration file.

@samuelgr
Copy link
Owner

samuelgr commented May 6, 2023

Implemented in 0d53fec.

@samuelgr samuelgr closed this as completed May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants