no fake mouse pos on fullscreen

This commit is contained in:
April Ayres-Griffiths 2019-04-13 18:36:17 +10:00
parent 26fd303630
commit be63b3fe96
5 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
object GUIForm: TGUIForm
Left = 2040
Left = 2434
Height = 668
Top = 171
Top = 239
Width = 1014
AlphaBlendValue = 128
Caption = 'microM8 GUI'

View File

@ -2313,8 +2313,10 @@ begin
if GetTitleOfActiveWindow = 'microM8' then
begin
{$IFDEF WINDOWS}
if IsMouseBtnDown then
exit;
{$ENDIF}
// another hack: disable mouse buttons on refocus
SimpleGet( baseUrl + '/api/control/mouse/buttonstate/0' );

Binary file not shown.

Binary file not shown.

View File

@ -1630,6 +1630,8 @@ var
x, y: longint;
p, q: TPoint;
begin
if isFS then
exit;
x := Mouse.CursorPos.x;
y := Mouse.CursorPos.y;
if (x <> lastMouseX) or (y <> lastMouseY) then