mirror of
https://github.com/paleotronic/microm8-gui.git
synced 2025-02-20 07:28:55 +00:00
fix incorrect mouse button state call
This commit is contained in:
parent
6806f92640
commit
b4a3c7e325
@ -2298,10 +2298,8 @@ begin
|
||||
if GetTitleOfActiveWindow = 'microM8' then
|
||||
begin
|
||||
|
||||
{$IFDEF WINDOWS}
|
||||
if IsMouseBtnDown then
|
||||
exit;
|
||||
{$ENDIF}
|
||||
|
||||
//Application.Restore;
|
||||
StatusBar1.SimpleText := 'trying to focus '+DateTimeToStr(Now);
|
||||
|
Binary file not shown.
Binary file not shown.
4
main.pas
4
main.pas
@ -539,7 +539,7 @@ var
|
||||
mstate: integer;
|
||||
s: string;
|
||||
begin
|
||||
s := GetConfig( baseUrl+'/api/control/mouse/buttonstate' );
|
||||
s := SimpleGet( baseUrl+'/api/control/mouse/buttonstate' );
|
||||
mstate := StrToInt( s );
|
||||
result := (mstate and integer(AMouseBtn)) <> 0;
|
||||
end;
|
||||
@ -560,7 +560,7 @@ function TGUIForm.IsMouseBtnDown: Boolean;
|
||||
var
|
||||
mstate: integer;
|
||||
begin
|
||||
mstate := StrToInt( GetConfig( baseUrl+'/api/control/mouse/buttonstate' ) );
|
||||
mstate := StrToInt( SimpleGet( baseUrl+'/api/control/mouse/buttonstate' ) );
|
||||
result := mstate <> 0;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
Loading…
x
Reference in New Issue
Block a user