Axis motion axis does not change when two buttons are pressed simultaneously

sonkimyn
Tue, 20 May 2025 06:27:41 +0000
Programming & Scripting

I’m using Enhanced Input to control the character’s movement. I followed the tutorial. I got it right, when I press W (axis +1) the character goes forward, when I press S (axis -1) the character goes backwards. When I first press the button W, and then simultaneously pressed S, the character starts to go backwards, as this button I pressed last (this is correct). But when I first press S and then W, the character does not go forward, and continues to go backwards. For some reason in this situation axis is not reversed (as in the case of the first pressed W and then S).I want the character to go in the same way in the direction of the last pressed button.

3 posts - 2 participants