GetMouseBtnState

From SCAR Divi Manual
Jump to: navigation, search

Definition

function GetMouseBtnState(const Btn: TMouseButton): Boolean;

Availability

SCAR Divi 3.35 > Current

Aliases

  • IsMouseButtonDown (SCAR Divi 3.00 > 3.34)

Description

Returns true if the mouse button given by the TMouseBtn parameter Btn, is down.

Example

begin
  if IsMouseButtonDown(mbRight) then
    WriteLn('Right mouse button is down!');
end.

See Also