- Home /
Animation controller
How do I define key names? eg if I am using left control to fire a weapon how do I tell Unity this? Can I just say keycode.leftcontrol = "Fire"?
Comment
Answer by jahroy · Nov 17, 2011 at 02:31 AM
Check out the Input Manager:
Edit -> Project Settings -> Input
After choosing this from the menu, look in the Inspector.
You'll see an item named Axes, which can be expanded and edited.
This is where all the inputs (and their behaviors) are defined.
Like $$anonymous$$ox says, you can also hardcode input management by using things like Input.Get$$anonymous$$ey($$anonymous$$eyCode.LeftControl)