Question by
LittleCoyote · Oct 11, 2017 at 07:29 PM ·
inputissuecursor
Input Button Fire 1 is not setup
I'm getting strange error. When I have cursor configured like this:
Cursor.visible = false;
Cursor.lockState = CursorLockMode.Locked;
and hit Escape while runnig game in editor play mode, I'm getting exception
Input Button Fire 1 is not setup
Exception points to line
if (Input.GetButtonDown("Fire 1")) <-- here
//do smth
}
Input works ok unless I press Escape and cursor shows. When I click again in game window, I can't use "Fire 1" anymore.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612140811im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Is there a way to ensure a cursor position must hover over an object to work in OnMouseDrag? 1 Answer
Mouse stuck on busy in the compiled version. 1 Answer
Mouse Cursor Problem 0 Answers
xBox 360 controller input not registered for two controllers 0 Answers
Make character follow cursor movement and detect collision 0 Answers