diff --git a/MLEM/Input/InputHandler.cs b/MLEM/Input/InputHandler.cs index 4cd8910..36740b5 100644 --- a/MLEM/Input/InputHandler.cs +++ b/MLEM/Input/InputHandler.cs @@ -416,7 +416,7 @@ namespace MLEM.Input { /// True if a gesture of the type was found, otherwise false public bool GetGesture(GestureType type, out GestureSample sample) { foreach (var gesture in this.Gestures) { - if ((gesture.GestureType & type) != 0) { + if (type.HasFlag(gesture.GestureType)) { sample = gesture; return true; }