Post Reply 
Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226)
02-04-2017, 06:23 AM (This post was last modified: 02-04-2017 06:50 AM by Carlos295pz.)
Post: #5
RE: Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226)
I think this explains better, WAIT (-1) returns these types of events:
0: Initial pulse (New)
1: Drag
2: End of pulse
3: Pulse in menu area
5: Zoom
6: Rotate
7: Long Pulse

Let's see what should happen:
For a normal touch only 2 pulses should be counted as seen in this example:





Code:
EXPORT REPEAT_WAIT()
BEGIN

 LOCAL Action,Cnt;

 RECT;
 TEXTOUT_P("Touch the screen",15,70,5);
 TEXTOUT_P("WAIT(-1) value:         --",20,100,2);
 TEXTOUT_P("Number of Events:  --",20,115,2);

 REPEAT

  Action:=WAIT(−1);

  RECT_P(125,100);
  Cnt:=Cnt+1;
  TEXTOUT_P(Action,125,100,2);
  TEXTOUT_P(Cnt,125,115,2);

 UNTIL ISKEYDOWN(4);

END;

Viga C | TD | FB
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Bug in REPEAT + WAIT(-1) when [UNTIL 0;] (FW 11226) - Carlos295pz - 02-04-2017 06:23 AM



User(s) browsing this thread: 1 Guest(s)