mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-23 05:08:34 +01:00
use HasFlag in InputHandler for better readability
This commit is contained in:
parent
1d38262388
commit
1347d0bb1e
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ namespace MLEM.Input {
|
||||||
/// <returns>True if a gesture of the type was found, otherwise false</returns>
|
/// <returns>True if a gesture of the type was found, otherwise false</returns>
|
||||||
public bool GetGesture(GestureType type, out GestureSample sample) {
|
public bool GetGesture(GestureType type, out GestureSample sample) {
|
||||||
foreach (var gesture in this.Gestures) {
|
foreach (var gesture in this.Gestures) {
|
||||||
if ((gesture.GestureType & type) != 0) {
|
if (type.HasFlag(gesture.GestureType)) {
|
||||||
sample = gesture;
|
sample = gesture;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue