-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMouse.simba
More file actions
31 lines (27 loc) · 723 Bytes
/
Mouse.simba
File metadata and controls
31 lines (27 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{$include_once Timing.simba}
{*
R_DidRedClick
~~~~~~~~~~~~~~~~~~~~~~
Returns true if red 'X' appeared. Will return false if not used after a mouse click.
Example:
Mouse.Click(MOUSE_LEFT);
if R_DidRedClick then
Result := True;
*}
Function R_DidRedClick(): Boolean;
begin
Result := WaitUntil((RGetStaticInt(R_EIOS, Client_CrossHairColor) = 2), 50, 200);
end;
{*
R_DidYellowClick
~~~~~~~~~~~~~~~~~~~~~~
Returns true if yellow 'X' appeared. Will return false if not used after a mouse click.
Example:
Mouse.Click(MOUSE_LEFT);
if R_DidYellowClick then
Result := True;
*}
Function R_DidYellowClick(): Boolean;
begin
Result := WaitUntil((RGetStaticInt(R_EIOS, Client_CrossHairColor) = 1), 50, 200);
end;