Changeset 1057 for trunk


Ignore:
Timestamp:
02/01/13 12:10:55 (12 years ago)
Author:
pharms
Message:
  • extended comparison to also correctly compare mouse double clicks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-core-tasktrees/src/main/java/de/ugoe/cs/autoquest/tasktrees/nodeequality/GUIEventTaskComparisonRule.java

    r1056 r1057  
    179179                                            MouseClick interaction2) 
    180180    { 
     181        if (interaction1.getButton() != interaction2.getButton()) { 
     182            return NodeEquality.UNEQUAL; 
     183        } 
     184         
    181185        int x1 = interaction1.getX(); 
    182186        int x2 = interaction2.getX(); 
     
    206210                                                  MouseDoubleClick interaction2) 
    207211    { 
     212        if (interaction1.getButton() != interaction2.getButton()) { 
     213            return NodeEquality.UNEQUAL; 
     214        } 
     215         
    208216        int x1 = interaction1.getX(); 
    209217        int x2 = interaction2.getX(); 
     
    233241                                                  MouseDragAndDrop interaction2) 
    234242    { 
     243        if (interaction1.getButton() != interaction2.getButton()) { 
     244            return NodeEquality.UNEQUAL; 
     245        } 
     246         
    235247        int x1 = interaction1.getX(); 
    236248        int x1Start = interaction1.getXStart(); 
Note: See TracChangeset for help on using the changeset viewer.