diff -r 92f19af39024 -r f4e52a4c34b3 middleware/src/Tracking/Events/PushListener.cs --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/middleware/src/Tracking/Events/PushListener.cs Thu Mar 15 13:35:25 2012 +0100 @@ -0,0 +1,37 @@ +/* + * Projet : TraKERS + * Module : MIDDLEWARE + * Sous-Module : Tracking/Events + * Classe : PushListener + * + * Auteur : alexandre.bastien@iri.centrepompidou.fr + * + * Fonctionnalités : Ce listener écoute l'événement du type : L'utilisateur a effectué un push. + * Il contient le code a être éxecuté au cas où cet événement survient, à savoir : + * - On affiche un visuel dans le debug. + * - On notifie le serveur TUIO. + */ + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Trakers.Tracking.Events +{ + public class PushListener + { + /* + * Méthode appelée lorsque on a l'événement : L'utilisateur a effectué un push. + */ + public void ShowOnScreen(object o, PushEventArgs e) + { + //Console.Out.WriteLine("3"); + //On l'indique dans le debug. + e.debug.showPush(e); + //e.debug.ExceptionLbl.Content = "SWIPE"; + //On notifie le serveur TUIO. + e.server.Pull(o, e); + } + } +}