How do I make joystick and keyboard controls equivalent to one another?
I'd like people to be able to play my game either with a keyboard or with a joystick, but the input is done differently for the two when multiple axes are involved. With the keyboard, a diagonal, such as left and right being pressed simultaneously, is seen by the input manager as (1, 1). But on the joystick it is something like (0.7, 0.7), smoothed out so that the horizontal/vertical input's magnitude is always the same. On keyboard, however, there is no such thing, which in my game's case means the character will move faster with diagonal input than in the cardinal directions, as (1, 1) produces a higher magnitude than (1, 0).
Your answer
Follow this Question
Related Questions
Trouble with cross platform input in mobile multiplayer 1 Answer
Gamepad recognized as joystick and doesn't work 0 Answers
Move scene with gamepad joysticks? 0 Answers
Why my joystick axis value when i press them always 1 ( left and right ) ? 0 Answers
Switching between mouse/keyboard and controller for UI navigation (using Input System) 0 Answers