raylib-d Gamepad Detection Fails

Steven Schveighoffer schveiguy at gmail.com
Thu Dec 1 15:35:37 UTC 2022


On 12/1/22 3:24 AM, bauss wrote:

> 
> But probably not on every frame, have a delay between checks.

It's not anything controllable by the user. The library does the check 
every frame regardless of whether you use it or not.

When you call the raylib function, you are not actually querying the 
device, you are checking a boolean in a struct.

https://github.com/raysan5/raylib/blob/387c06000618ef0aa3b15c5e46d1c525ba194c50/src/rcore.c#L3567

-Steve


More information about the Digitalmars-d-learn mailing list