raylib-d Gamepad Detection Fails
    jwatson-CO-edu 
    real.name at colorado.edu
       
    Thu Dec  1 22:16:30 UTC 2022
    
    
  
On Thursday, 1 December 2022 at 21:34:41 UTC, Steven 
Schveighoffer wrote:
> On 12/1/22 11:10 AM, ryuukk_ wrote:
>> Can you try with this page: 
>> https://www.raylib.com/examples/core/loader.html?name=core_input_gamepad
>> 
>> Does it detect your gamepad?
>
> It should work because the `IsGamepadAvailable` function call 
> is inside the loop. That's most certainly the problem with the 
> OP code.
>
> -Steve
That was the trick, [inside the loop it detects the 
gamepad](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d#L35).  No other changes needed.
    
    
More information about the Digitalmars-d-learn
mailing list