Gamepad input resets mouse position to the center of the screen.

Hello!!

The problem is just what title says.

I am trying to do multiple players be able to play on same screen - it works perfectly well with gamepad + gamepad or with 1 keyboard.

However when keyboard and gamepad are connected for player 0 and 1, any input from gamepad keeps resetting mouse position to viewport center (which screws up the aiming for player 0).

I did try all the possible combinations between mouse capture, mouse lock and set game input to ui/game/both.

I am using common UI plugin - might this be related?

Whenever i try to print mouse position in viewport on tick during its snap it says -3billion-something on both axes.

So here is the answer (partially):

Whenever “Supports gamepad” is true in project settings (check the picture below), any input from said gamepad will reset the mouse cursor to the center of viewport while being actuated, but will snap back to its current position once the actuation is finished. For now the main menu will have to do without controller input.

If anyone understands what’s happening, and maybe have other ideas how to bypass this, let me know here or in DMs.

Project settings-> Common Input Settings-> Untick “Supports gamepad” under windows

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.