- Home /
Unity 4.6.3f1 bug or normal behaviour? MouseButtonDown cancelled/ ignored by key press
I'd love to download an old version of Unity and test this but I have got the sorriest internet and it'll take about 20 hours.
I have a huge problem with mouse clicks. Using the current latest version (4.6.3f1).
I have a simple little script attached to the camera in an empty project:
#pragma strict
function Update ()
{
if (!(Input.GetMouseButton(0)))
{
print ("Not down");
}
}
And as you might imagine, when I haven't got the left mouse button down it prints "Not down" into the console like crazy. It stops when I click and hold the mouse button.
However when I press ANY button on the keyboard while the mouse button is down it seems to ignore the fact I have the mouse button down and starts printing again.
What's worse is that when I hit a key on the keyboard and then click the mouse down within about a second of having pressed the key it totally ignores it.
Can anyone shed any light on whats going on?
Thankyou very very much,
Romano
On my laptop, I don't get the problem with my USB mouse but strangely I do get the problem with the mouse buttons on my track pad. This is on Unity 4.6.2f1. $$anonymous$$aybe its some sort of driver issue.
Thankyou. $$anonymous$$ind me asking what kind of laptop you're using?
It's a Toshiba Satellite 750. I recently upgraded it from windows 7 to 8.1.
Hmmmmm. I also have windows 8.1. I just rolled back the driver on my wacom tablet and that seemed to fix it for that. Think you might be right about some kinda driver thing. I suppose I'll try and let Unity know about it. Thanks for your help!
Your answer
Follow this Question
Related Questions
OnGUI() and key pressing problems. 2 Answers
Unity sometimes misses Mouse Button Release 1 Answer
Keyboard / Mouse control for FPS 0 Answers
Android - Detecting USB Mouse and Keyboard Input 0 Answers
How to click only one once? 0 Answers