- Home /
Problem with mouse/keboard input in Editor Game Window
Everything has been fine but today I hit play and in the Game window I am not getting my mouse and keyboard input.
I tried BootCamp and AngryBots and they both have the same problem. If I build and run the build they work fine so its something with Unity Editor Game window. The scene view and everything else works fine.
When I run AngryBots the camera will follow my mouse movement and I can make it fire when I press the left mouse button but I can't get WASD or arrow buttons to move the character. In BootCamp the camera is not following my mouse movement but I can shoot the gun. I can not get the caracter to move. Shift and control doesn't make him crotch. When I hit escape it takes me out of the mouse lock mode and I see my mouse cursor but I don't see the Resume Menu.
I recently updated to 3.5 and not sure this has worked since I updated.
I reinstalled unity, I rebooted. etc. But no luck to fix this.
I created a new project, I made a script and add this one line to it. It always returns false.
using UnityEngine;
using System.Collections;
public class KeyboardTest : MonoBehaviour {
// Use this for initialization
void Start()
{
}
// Update is called once per frame
void Update()
{
Debug.Log(Input.anyKeyDown.ToString());
}
}
Answer by ktweedy1 · Mar 19, 2012 at 03:15 PM
thanks rutter. This link was able to help me to get it to work.
It was similiar. I tried the DirectInput registry change but I was already set to that.
So What I did is deleted all the Unity registry trees. There was a couple, Unity, Unity Technologies and something else in the HKEY_CURRENT_USER/Software tree.
I think was happend is I had two installs, 3.4 and 3.5 and something having both got it confused.
Your answer
Follow this Question
Related Questions
Input in editor scripts 2 Answers
Detect input from EditorApplication.update callback? 1 Answer
Keyboard fails to work during play mode but OK in build. 1 Answer
Visual in sprite editor - then invisible sprites in scene + gui??? -- images included 0 Answers
How to detect if project is Using new or Old Input System via code? 1 Answer