Hold Mouse Button vs. Tap Mouse Button

Here’s another different way of going about it that I made, it might not be the best for your case but it’s what I currently do for handling detecting if the lmb is held down long enough for box selecting units.

Both in tick, not really the best way but since it’s only on the player character I didn’t really care. I also use enums to handle alot of things since there’s so many different states the mouse can be in depending on if its used to build, select units, mark orders, etc.