1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-12-27 02:29:23 +01:00

added DisableGestures to InputHandler

This commit is contained in:
Ellpeck 2020-05-31 20:49:03 +02:00
parent d3e8a9f811
commit af7e22d2af

View file

@ -503,5 +503,14 @@ namespace MLEM.Input {
TouchPanel.EnabledGestures |= gesture;
}
/// <summary>
/// Helper function to disable gestures for a <see cref="TouchPanel"/> easily.
/// </summary>
/// <param name="gestures">The gestures to disable</param>
public static void DisableGestures(params GestureType[] gestures) {
foreach (var gesture in gestures)
TouchPanel.EnabledGestures &= ~gesture;
}
}
}