Fórum How Can I clean the mouse buffer Delphi #586678
11/10/2017
0
Someone can Helpe me please?
I´m using delphi tokyo 10.2.1 and this app is to IOS and Android.
procedure TForm1.EmptyMouseQueue;
var
Msg: TMsg;
begin
while PeekMessage( Msg, 0, WM_MOUSEFIRST, WM_MOUSELAST,
PM_REMOVE or PM_NOYIELD )
do;
end;
Roberto
Curtir tópico
+ 0Post mais votado
13/10/2017
PeekMessage is a function of windows API.
Add in WinApi.Windows form uses.
I'm not sure if it will work in your environment (app is to IOS and Android).
Natanael Ferreira
Gostei + 1
Mais Posts
13/10/2017
Roberto
it is not working with IOS and Android.
I Put WinApi.windows and work with windows but theses const are not find "WM_MOUSEFIRST" and "WM_MOUSELAST". Could you help me?
Gostei + 0
13/10/2017
Natanael Ferreira
Add Winapi.Messages in the form's uses clause and test again.
Gostei + 1
Clique aqui para fazer login e interagir na Comunidade :)