Hello Lennaert, thanks for the reply
The problem gets tricky this way, cause in my game I need to do things separately on certain conditions with the inputs.
I'll try explain...
I have a player that are going to aim something. The way he do it is that he click and hold down the mouse and then drags in a direction.
What the player see, is a small cross where the mouse-pointer was when he first clicked. ... then he still holds down the mouse and drag in a direction. Then he see a line between the cross, and where he now has his mouse pointer. ... it's kind of drawing a bow and aiming.
So when I did this game as a single player at first. I used 3 conditions.
* On Left button clicked - I created the cross, and a line, at the mouse pointer position, and saved the coordinates in a variable.
* Left button is down - I use the distance to set the width on the aiming-line and also sets the angle pointing towards the cross ( coordinates )
* Left button is released - the projectile gets shot away.