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

Option to change ranges of reported raw values #291

Open
JabberwockPL opened this issue Jul 5, 2024 · 1 comment
Open

Option to change ranges of reported raw values #291

JabberwockPL opened this issue Jul 5, 2024 · 1 comment

Comments

@JabberwockPL
Copy link

Even if custom ranges for the axes are set, the raw (HID) values that are reported seem to be still in the fixed range of -32767 to 32767. This is sometimes problematic for software that works with raw values directly and not with DirectX normalized ranges... For example, some games using the Unity default input handler get confused with the negative part of the range. I realize that those issues should be better fixed on the game side, but it is not likely... Moreover, it sometimes affects Windows calibration, as it also works with raw values.

Could we have an option that the raw values are reported in the range that is set for the axis? For example, if I set the X axis range to 0 65535, that is exactly what is reported in raw values?

@JabberwockPL
Copy link
Author

JabberwockPL commented Aug 1, 2024

Alternately, the default reported range could be changed from -32767 to +32767 to the default DirectX range 0 to 65535, that way there would be no discrepancy between raw reported values and the system values. As per the HID specification:
'Traditionally, a joystick driver applies its own scaling to values returned from a joystick. That is, the driver simply linearizes and translates the range of values generated by the stick into normalized values between 0 and 64K, where 32K is centered. The application (game) then interprets the normalized values as necessary'.

That is why some games will have problems with HID reports which have axes in negative values.

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

No branches or pull requests

1 participant