| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<org_malai_interaction:Interaction xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:org_malai_interaction="http://org.malai.interaction/1_0_0//org/malai/interaction" description="This interaction defines a double click. Between the two clicks the mouse must not moved. A delay of 1 second at max is permitted between the two clicks." author="Arnaud Blouin" dateCreation="2013-03-25" version="1" initState="//@states.3"> |
| 3 |
<states xsi:type="org_malai_interaction:StandardState" name="pressed1"> |
| 4 |
<outputTransitions inputState="//@states.0" outputState="//@states.3" condition="key==KeyEvent.VK_ESCAPE" name="pressed1KeyPressure"> |
| 5 |
<event href="events.event#//@events.1"/> |
| 6 |
</outputTransitions> |
| 7 |
<outputTransitions inputState="//@states.0" outputState="//@states.3" name="pressed1Move"> |
| 8 |
<event href="events.event#//@events.3"/> |
| 9 |
</outputTransitions> |
| 10 |
<outputTransitions inputState="//@states.0" outputState="//@states.1" condition="hid==DoubleClick.this.getLastHIDUsed() && button==DoubleClick.this.getButton()" name="pressed1Release"> |
| 11 |
<event href="events.event#//@events.5"/> |
| 12 |
</outputTransitions> |
| 13 |
</states> |
| 14 |
<states xsi:type="org_malai_interaction:StandardState" name="released1"> |
| 15 |
<outputTransitions inputState="//@states.1" outputState="//@states.3" name="release1Move"> |
| 16 |
<event href="events.event#//@events.3"/> |
| 17 |
</outputTransitions> |
| 18 |
<outputTransitions inputState="//@states.1" outputState="//@states.2" condition="hid==DoubleClick.this.getLastHIDUsed() && button==DoubleClick.this.getButton()" name="release1Pressure"> |
| 19 |
<event href="events.event#//@events.4"/> |
| 20 |
</outputTransitions> |
| 21 |
</states> |
| 22 |
<states xsi:type="org_malai_interaction:StandardState" name="pressed2"> |
| 23 |
<outputTransitions inputState="//@states.2" outputState="//@states.3" condition="key==KeyEvent.VK_ESCAPE" name="pressed2KeyPressure"> |
| 24 |
<event href="events.event#//@events.1"/> |
| 25 |
</outputTransitions> |
| 26 |
<outputTransitions inputState="//@states.2" outputState="//@states.3" name="pressed2Move"> |
| 27 |
<event href="events.event#//@events.3"/> |
| 28 |
</outputTransitions> |
| 29 |
<outputTransitions inputState="//@states.2" outputState="//@states.4" condition="hid==DoubleClick.this.getLastHIDUsed() && button==DoubleClick.this.getButton()" name="pressed2Release"> |
| 30 |
<event href="events.event#//@events.5"/> |
| 31 |
</outputTransitions> |
| 32 |
</states> |
| 33 |
<states xsi:type="org_malai_interaction:InitState" name="init"> |
| 34 |
<outputTransitions inputState="//@states.3" outputState="//@states.0" name="initPressure"> |
| 35 |
<event href="events.event#//@events.4"/> |
| 36 |
</outputTransitions> |
| 37 |
</states> |
| 38 |
<states xsi:type="org_malai_interaction:AbortingState" name="aborted"/> |
| 39 |
<states xsi:type="org_malai_interaction:TerminalState" name="released2"/> |
| 40 |
<clazz name="SimpleClick"> |
| 41 |
<eSuperTypes href="PointInteraction.interaction#//@clazz"/> |
| 42 |
</clazz> |
| 43 |
</org_malai_interaction:Interaction> |