From af7e22d2af1e6f0aeb6be95168cc7902a434ccca Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 31 May 2020 20:49:03 +0200 Subject: [PATCH] added DisableGestures to InputHandler --- MLEM/Input/InputHandler.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/MLEM/Input/InputHandler.cs b/MLEM/Input/InputHandler.cs index de2ac97..ab2cb72 100644 --- a/MLEM/Input/InputHandler.cs +++ b/MLEM/Input/InputHandler.cs @@ -503,5 +503,14 @@ namespace MLEM.Input { TouchPanel.EnabledGestures |= gesture; } + /// + /// Helper function to disable gestures for a easily. + /// + /// The gestures to disable + public static void DisableGestures(params GestureType[] gestures) { + foreach (var gesture in gestures) + TouchPanel.EnabledGestures &= ~gesture; + } + } } \ No newline at end of file