A small question about Input

I noticed a small irregularity while I was working today, and it made me curious. It isn’t really a problem, but I wondered about it and thought I’d ask about it here.

In the Input screen I set left ctrl as Fire1, and right ctrl as Fire2. I then tried out my game, and for unknown reasons when I pressed left ctrl it seemed to activate both Fire1 and Fire2. The same thing happened when I pressed right ctrl.

I then tried setting left shift as Fire1, and right shift as Fire2. The same thing happened.

On the other hand, when I set left ctrl as Fire1 and right shift as Fire2, this did not occur.

Does Unity treat two keys of the same type as being the same key? For example, are left and right shift treated as THE shift key? Is there a way to get it to use the two different keys? If not, that’s cool. I just wondered about this since it seemed so odd.

That happens to me, but only in the editor. When running a stand-alone, the left/right keys are treated separately. If this isn’t the case for you, it might depend on your physical keyboard (I’m using the standard Apple Pro keyboard here, on a G5).

–Eric

So it works standalone? That’s good to know. It is kind of annoying though. And yes, this was only happening to me in the editor