|
17
|
1 |
/* |
|
|
2 |
* This file is part of the TraKERS\Middleware package. |
|
|
3 |
* |
|
|
4 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
|
5 |
* |
|
27
|
6 |
* For the full copyright and license information, please view the LICENSE |
|
17
|
7 |
* file that was distributed with this source code. |
|
|
8 |
*/ |
|
|
9 |
|
|
|
10 |
/* |
|
|
11 |
* Projet : TraKERS |
|
|
12 |
* Module : MIDDLEWARE |
|
|
13 |
* Sous-Module : MainModule/Events |
|
|
14 |
* Classe : CrossListener |
|
|
15 |
* |
|
|
16 |
* Auteur : alexandre.bastien@iri.centrepompidou.fr |
|
|
17 |
* |
|
|
18 |
* Fonctionnalités : Ce listener écoute l'événement du type : L'utilisateur a croisé les bras en X. |
|
|
19 |
* Il contient le code a être éxecuté au cas où cet événement survient. |
|
|
20 |
*/ |
|
|
21 |
|
|
|
22 |
using System; |
|
|
23 |
using System.Collections.Generic; |
|
|
24 |
using System.Linq; |
|
|
25 |
using System.Text; |
|
|
26 |
|
|
|
27 |
namespace Trakers.MainModule.Events |
|
|
28 |
{ |
|
|
29 |
public class CrossListener |
|
|
30 |
{ |
|
|
31 |
/* |
|
|
32 |
* Méthode appelée lorsque on a l'événement : L'utilisateur a croisé les bras en X. |
|
|
33 |
*/ |
|
|
34 |
public void showAndSend(object o, CrossEventArgs e) |
|
|
35 |
{ |
|
|
36 |
e.debug.showGesture("CROSS"); |
|
|
37 |
e.server.GesturePerformed("CROSS"); |
|
|
38 |
} |
|
|
39 |
} |
|
|
40 |
} |