mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-06-16 10:44:32 +02:00
added DisableGestures to InputHandler
This commit is contained in:
parent
d3e8a9f811
commit
af7e22d2af
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue