MOUSE command CLICK type
|
03-04-2018, 11:08 AM
Post: #16
|
|||
|
|||
RE: MOUSE command CLICK type
Bonjour
Ce poste est très intéressant, personnellement en utilisant WAIT(-1) dans un programme pour détecté soit un click soit un glisser je me suis retrouvé confronté à un problème. L'événement glisser a tendance à être détecté plusieurs fois, voici un peu l'architecture de mon programme: Hello This post is very interesting, personally using WAIT (-1) in a program to detect either a click or a drag I found myself facing a problem. The drag event tends to be detected several times, here is a little architecture of my program: Code:
le click fonctionne très bien. Le remède que j'ai trouvé insérer Code: WHILE MOUSE(4)<>-1 END; Code: n:=8 On voit d'ailleurs bien un temps de latence plus ou moins long selon l'amplitude du glisser. Question peut-on vider le buffer de WAIT(-1) instantanément avec une instruction une fois nos événements acquis ? The problem is that for a single drag the 2 rounds of loop For t execute while only 1 should do it. the click works very well. The remedy I found insert [code] WHILE MOUSE (4) <> - 1 END; [/ code] before [code] n: = 8 [/ code] in ch_de which I think must clear the buffer of WAIT ( -1). We also see a latency time more or less long depending on the amplitude of the slide. Question can we clear the buffer of WAIT (-1) instantly with an instruction once our events acquired? Sorry for my english |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)