Question by
Mouroz · Dec 03, 2018 at 09:31 PM ·
c#inputmanager
Checking input from input.manager axes?
I've been looking alot on tuturials recently about movement...
some of them used Input.GetAxis("Horizontal") for movements... but it turns out the object takes very long to stop or to change directions and it might be very annoying for platform games
Input.GetKey("space")
float axis = Input.GetAxisRaw("Horizontal");
//System.Convert.ToSingle(move);
Vector2 movement = new Vector2(movespeed * axis, 0);
rb2d.AddForce(movement);
Other examples i found used Input.GetKey("key") but its not what im looking for since it wont be effective if i might want in the future to put control changing menu... Is there anyhow for me to check if a Input.Manager key set was pressed? (like horizontal, jump, and more) Or at least a part of it like (horizontal.positive button, and more)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612183254im_/https://answers.unity.com/themes/thub/images/avi.jpg)