ReadsGestures
Introduction
Code Example
Reading gestures from FlatRedBall InputManager
// ReadsGestures is true by default, but we'll include it here
// to explicitly show that it must be true for LastFrameGestures
// to contain anything.
FlatRedBall.Input.InputManager.TouchScreen.ReadsGestures = true;
foreach (var gesture in InputManager.TouchScreen.LastFrameGestures)
{
switch (gesture.GestureType)
{
// Add your code to react to gestures here...
}
}Reading gestures from MonoGame TouchPanel
Last updated
Was this helpful?