mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-29 15:58:33 +01:00
added DisableGestures to InputHandler
This commit is contained in:
parent
d3e8a9f811
commit
af7e22d2af
1 changed files with 9 additions and 0 deletions
|
@ -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