You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// src/rgestures.h line 127boolIsGestureDetected(intgesture); // Check if a gesture have been detected// src/raylib.h line 1170RLAPIboolIsGestureDetected(unsigned intgesture); // Check if a gesture have been detected
how come one is int and the other is unsigned int? Which one should it be? Originally it was an int(in rust bindings)
The text was updated successfully, but these errors were encountered:
@jestarraygesture is enum (L79-L91). Quoting this answer: "An enum is guaranteed to be represented by an integer, but the actual type (and its signedness) is implementation-dependent."
In the case of IsGestureDetected() I don't think it matters, since underflowing or overflowing that parameter will be out of bounds of that enum valid gestures anyway. But, IMHO, could probably be changed to int gesture on raylib.h just for the sake of consistency.
jestarray
added a commit
to jestarray/raylib
that referenced
this issue
Oct 25, 2023
how come one is
int
and the other isunsigned int
? Which one should it be? Originally it was an int(in rust bindings)The text was updated successfully, but these errors were encountered: