on-internet
← Community

How do I capture Mouse/Keyboard input in my game when it's not the window/application in focus?

Stack Overflow ·

I'm trying to design a game in Unity similar to bongo cat where a penguin is fishing and you just do things or type to others, taking each input and turning it into a "wiggle" of the fishing rod. Every 10 wiggles it catches something, and for the most part this works fine, but I've run into two issues; When hitting different buttons in quick succession, or holding down shift to capitalize a letter, it only captures the first input, I have the function in Unity's Update and I thought that's called every frame, I highly doubt I'm typing faster than that so I'm unsure what's going wrong? When the

Comments

Sign in or sign up to comment and upvote.

No comments yet.