Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IsGestureDetected parameter inconsistency in raylib.h with rgextures.h #3464

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

jestarray
Copy link
Contributor

closes #3463

@raysan5 raysan5 merged commit 804f1a8 into raysan5:master Oct 26, 2023
@raysan5
Copy link
Owner

raysan5 commented Oct 26, 2023

@jestarray thanks for the review

raysan5 added a commit that referenced this pull request Oct 26, 2023
@raysan5
Copy link
Owner

raysan5 commented Oct 26, 2023

@jestarray I'm afraid I reverted this PR, it broke the build because it was incomplete but when reviewing implementation I noticed that gesture should be unsigned int for the flag check agains unsigned int flag:

// Check if a gesture have been detected
bool IsGestureDetected(unsigned int gesture)
{
    if ((GESTURES.enabledFlags & GESTURES.current) == gesture) return true;
    else return false;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IsGestureDetected inconsistent parameters
2 participants