Post Reply 
MOUSE command CLICK type
01-25-2018, 11:40 PM
Post: #3
RE: MOUSE command CLICK type
Hello Carlos,
thanks for your feedback. In reality i tried to work with MOUSE since i tried to work with the WAIT(-1) command with no luck as well.
With WAIT i am able to detect the menu Keys, the CLICK, but i am not able to detect the MOVE (the direction of MOVE) since i'd like to understand where the user is moving the finger...

Another code snippet...

Code:


EXPORT SoftMenu_TOUCH_2_TEST()
BEGIN
 //STARTVIEW(−1);
 DRAWMENU("ONE","TWO","THREE","FOUR","FIVE","SIX");
 LOCAL inp, ret:=1;

 WHILE ret≠0 DO
   inp:=WAIT(-1);
   IF TYPE(inp)≠6 
     THEN RETURN inp; //RETURN KEY CODE
     ret:=0;
   ELSE  //TOUCH SECTION
     CASE
       IF inp(1)==1 THEN RETURN B→R(inp); ret:=0; END;
       IF inp(1)==3 THEN //CLICK
         IF inp(3)>#220d THEN 
            RETURN (1+IP(inp(2)*6/320));
            ret:=0;
         ELSE
           RETURN "CLICK UPPER AREA"; 
           ret:=0;
         END;
       END;
     DEFAULT
     END;  // END OF CASE (TOUCH)
   END;    // END OF IF TYPE
 END;      // END OF WHILE
END;

Thanks

Giancarlo
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
MOUSE command CLICK type - Giancarlo - 01-25-2018, 09:59 PM
RE: MOUSE command CLICK type - Carlos295pz - 01-25-2018, 10:37 PM
RE: MOUSE command CLICK type - Giancarlo - 01-25-2018 11:40 PM
RE: MOUSE command CLICK type - Carlos295pz - 01-26-2018, 12:30 AM
RE: MOUSE command CLICK type - Giancarlo - 01-26-2018, 06:23 PM
RE: MOUSE command CLICK type - Carlos295pz - 01-26-2018, 07:34 PM
RE: MOUSE command CLICK type - Giancarlo - 01-27-2018, 04:22 PM
RE: MOUSE command CLICK type - Carlos295pz - 01-27-2018, 04:32 PM
RE: MOUSE command CLICK type - Carlos295pz - 01-26-2018, 07:52 PM
RE: MOUSE command CLICK type - Giancarlo - 01-27-2018, 06:35 PM
RE: MOUSE command CLICK type - Giancarlo - 01-29-2018, 08:16 PM
RE: MOUSE command CLICK type - Giancarlo - 02-24-2018, 10:08 PM
RE: MOUSE command CLICK type - Tyann - 03-04-2018, 11:08 AM
RE: MOUSE command CLICK type - Carlos295pz - 03-04-2018, 11:46 AM
RE: MOUSE command CLICK type - Tyann - 03-04-2018, 05:11 PM
RE: MOUSE command CLICK type - Carlos295pz - 03-04-2018, 07:50 PM
RE: MOUSE command CLICK type - Tyann - 03-06-2018, 05:58 AM
RE: MOUSE command CLICK type - Giancarlo - 03-04-2018, 09:11 PM
RE: MOUSE command CLICK type - Carlos295pz - 03-04-2018, 10:20 PM



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