- Home /
Mouse and Key Movement
Hi,
I want to rotate the player (or look up or down) using both key input and mouse movement. I can already move the player about the vertical or horizontal axes using the classic, "WASD" keys.
However, when I add the MouseLook scripting component to the player, I lose control of the "AD" keys and I am unable to move the player about the horizontal axis, if I choose 'MouseX'. If I choose 'MouseXandY', I lose control of the player completely...
What would I need to change in the Edit->ProjectSettings->Input manager? Or even possibly the code in the MouseLook script?
In the input manager under Horizontal I have 'a' and 'd' set, a being negative, b as positive. Under Vertical I have 'w' being positve and 's' being negative (these are also the alternatives).
Your answer
![](https://koobas.hobune.stream/wayback/20220613085456im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[ASNWERED] How To Change Button To An Alphabet Key 2 Answers
Unity 4.6.3f1 bug or normal behaviour? MouseButtonDown cancelled/ ignored by key press 0 Answers
Select object with mouse and hide its children with key, 2 Answers
Project Navigation shortcut 0 Answers
How to simulate Arrow Keys Input 0 Answers