Quote Originally Posted by Traveler
I have a bit of a problem where I'm trying to get certain events to fire when the mouse buttons are released.
I'm searching the solution in states, like for example
[pascal]if (Input.mouse.Buttons[mbLeft]) and (isUp in Input.mouse.states) then <dosomething> [/pascal]
but that does not appear to work, as nothting seems to be happening.

It's probably something simple, but I dont see it.
So, any hints or tips would be appreciated
Easiest is to do as pstudio said.

[pascal]if (Input.mouse.Buttons[mbLeft]) and (isUp in Input.mouse.states) then <dosomething> [/pascal]

This code snippet just says if the Left mouse button is pressed and the mouse is moving upwards, <dosomething>. There is no way to detect keyups except for saving the last key state

[pascal]
var isLeft: Boolean;
...
if isButton1 in Input.Mouse.States then
isLeft:= true;
else begin
if isLeft then <dosomething>
isLeft:= False;
end;
[/pascal]