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

Game Misinterpreting Joystick Axis Readings #5

Open
Canis-Enigmas opened this issue May 16, 2020 · 6 comments
Open

Game Misinterpreting Joystick Axis Readings #5

Canis-Enigmas opened this issue May 16, 2020 · 6 comments

Comments

@Canis-Enigmas
Copy link

I have a Logitech G13 that has it's thumb joystick that I'm trying to use with this mod.
However, Unity Input Manager readout in the Devices tab is showing
Horizontal: 80 to 90
Vertical: -80 to -100
when the joystick is left alone dead center.
As a result, my game is always flying off to the far bottom right of the map without me touching anything. Trying to get it to stay still would require me to position the joystick somewhere halfway between extreme top-left position.

I've tried repeatedly to calibrate it in Windows' Game Controller window, but it looks like it isn't a Windows or device problem as the calibration tests all show the joystick is still dead accurate and reliable and I still can use it outside the game without issue.

I suspect that the game or Unity is thinking the device is reporting a single range per X & Y axis or something of that sort. Is this something wrong with Unity Input Manager or something I have to manually configure for it to recognize the device axis reporting correctly?

@RenaKunisaki
Copy link
Owner

You should be able to compensate by adding an offset, or by enabling Scan for USB Devices and using the joystick directly instead of through Unity.

@Canis-Enigmas
Copy link
Author

No, neither of these options do anything. Scan for USB Devices pops up a additional X & Y Axis readout in Devices, but the joystick readouts are fluctuating in the Unity Input Manger's Horizontal and Vertical fields. The Offset option doesn't do anything to them at all.

Even worse still, whenever I switch anything in the Inputs tab, the result is clicking my mouse button will position it's cursor dead center on the screen and send the click event there. Rendering my only control in the game completely useless, leaving me with Ctrl-Alt-Del as the only way to do anything and exit the game.

@RenaKunisaki
Copy link
Owner

RenaKunisaki commented May 17, 2020 via email

@Canis-Enigmas
Copy link
Author

This is what my initial settings are:
image
image

Note the joystick is left dead center and these are the readouts:
image
I've set the Offset settings for the Horizontal and Vertical inputs to the extreme settings
image
But nothing changes
image
The mouse locking in the center seems to only occur in game. It doesn't occur in the Main Menu.

@RenaKunisaki
Copy link
Owner

I see. This might be an issue with Unity itself. Those inputs come from the game, and I don't think it's possible to override them. There might be settings within Steam to stop Unity from using the joystick; it should still work with the mod.

@Canis-Enigmas
Copy link
Author

Canis-Enigmas commented May 23, 2020

Damn. Are there any guides or tools you could suggest or point me to search for?
I don't have any knowledge of Unity's design or development.

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

2 participants