middleware/src/MainModule/Events/SwipeListener.cs
changeset 17 fda26bfcabef
parent 15 4b78f179e7ce
child 27 6c08d4d7219e
equal deleted inserted replaced
16:a9ebacd6c089 17:fda26bfcabef
    22 using System;
    22 using System;
    23 using System.Collections.Generic;
    23 using System.Collections.Generic;
    24 using System.Linq;
    24 using System.Linq;
    25 using System.Text;
    25 using System.Text;
    26 using System.Threading;
    26 using System.Threading;
       
    27 using Trakers.Tracking.Gestures;
    27 
    28 
    28 namespace Trakers.MainModule.Events
    29 namespace Trakers.MainModule.Events
    29 {
    30 {
    30     public class SwipeListener
    31     public class SwipeListener
    31     {
    32     {
    33         * Méthode appelée lorsque on a l'événement : L'utilisateur a effectué un swipe.
    34         * Méthode appelée lorsque on a l'événement : L'utilisateur a effectué un swipe.
    34         */
    35         */
    35         public void showAndSend(object o, SwipeEventArgs e)
    36         public void showAndSend(object o, SwipeEventArgs e)
    36         {
    37         {
    37             String code = "";
    38             String code = "";
    38             if (e.direction == Gestures.SwipeDetector.Direction.LEFT)
    39             if (e.direction == SwipeDetector.Direction.LEFT)
    39                 code = "SWIPE-LEFT";
    40                 code = "SWIPE-LEFT";
    40             else
    41             else
    41                 code = "SWIPE-RIGHT";
    42                 code = "SWIPE-RIGHT";
    42 
    43 
    43             e.debug.showGesture(code);
    44             e.debug.showGesture(code);