Easiest is to do as pstudio said.Originally Posted by Traveler
[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]
Bookmarks