I'm trying to figure out how I can get mouse presses; that is, I want a function to return true only when the mouse is initially pressed, after that it will return false until the next time I click the mouse. Here's my event receiver code:
And it's not working. GetMouseLeftClicked( ) is returning true as long as the left button is being held, but it should only be returning true one time when the mouse is pressed. Any ideas what's going wrong? I know I'm probably missing something really stupid and obvious.
is generated only one time when you click left button
MouseLeftHeld becomes 1 and MouseLeftClicked becomes also 1. The execution of event stops, so this code will never be checked:
Is EMIE_LMOUSE_LEFT_UP the same way? Will it only be generated once when the mouse button is released, or is generated constantly as long as the mouse button is up?