GetMouseBtnState

From SCAR Divi Manual
Revision as of 20:09, 8 September 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function GetMouseBtnState(const Btn: TMouseButton): Boolean; </source> ==Availability== SCAR Divi 3.35 > Current ===Aliases...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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