Forums

Multi touch events
Last Post 07 May 2018 09:21 PM by Filip Dušek. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Matt WilsonUser is Offline
New Member
New Member
Posts:12


--
04 May 2018 02:37 AM
    I am trying to implement a few touch gestures in monogame/emptykeys and I'm struggling to make it work. I was able to make an implementation of InputGesture that watches for TouchGestures.Flick then figures out the directionality of the flick without too much difficulty. I am however having a hard time making a two finger rotate event. I have enabled the following gestures in monogame;


    TouchPanel.EnabledGestures =
    GestureType.DoubleTap |
    GestureType.Flick |
    GestureType.Pinch |
    GestureType.Tap;

    What am I missing here? If there isn't one already created, how can I make an implementation of InputGesture that can pick up multi-touch events?

    Thanks,

    Matt

    EDIT: I am aware I can do this with monogame's built-in touchpanel metadata, but I am hoping to use emptykeys events since that's how the rest of my input is handled.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:695


    --
    07 May 2018 09:21 PM
    Hi,
    touch input in MonoGame is bit of voodoo so I turn on only those, which are needed and I tested them properly. You can try to change it in in this class (in constructor)

    http://github.com/EmptyKeys/UI_Engines/blob/master/EmptyKeys.UserInterface.MonoGame/Input/MonoGameInputDevice.cs
    You are not authorized to post a reply.