Re: raylib-d Gamepad Detection Fails

2022-12-04 Thread jwatson-CO-edu via Digitalmars-d-learn
On Friday, 2 December 2022 at 01:03:47 UTC, Steven Schveighoffer wrote: It's important to remember that raylib-d doesn't do any special things with the raylib functions -- they are just straight calls into the library. -Steve Indeed, I plugged a different gamepad into the same system runnin

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/1/22 5:50 PM, jwatson-CO-edu wrote: On Thursday, 1 December 2022 at 22:16:30 UTC, jwatson-CO-edu wrote: 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. I ha

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread jwatson-CO-edu via Digitalmars-d-learn
On Thursday, 1 December 2022 at 22:16:30 UTC, jwatson-CO-edu wrote: 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. I have a new problem: Raylib-d [can see all 6 g

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread bauss via Digitalmars-d-learn
On Thursday, 1 December 2022 at 15:35:37 UTC, Steven Schveighoffer wrote: 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

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread jwatson-CO-edu via Digitalmars-d-learn
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` func

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread Steven Schveighoffer via Digitalmars-d-learn
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 O

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread ryuukk_ via Digitalmars-d-learn
On Thursday, 1 December 2022 at 01:49:09 UTC, jwatson-CO-edu wrote: On Thursday, 1 December 2022 at 01:12:17 UTC, Steven Schveighoffer wrote: On 11/30/22 7:28 PM, jwatson-CO-edu wrote: On Wednesday, 30 November 2022 at 23:18:33 UTC, ryuukk_ wrote: On Wednesday, 30 November 2022 at 22:46:52 UTC,

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread Steven Schveighoffer via Digitalmars-d-learn
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 d

Re: raylib-d Gamepad Detection Fails

2022-12-01 Thread bauss via Digitalmars-d-learn
On Thursday, 1 December 2022 at 02:06:43 UTC, Steven Schveighoffer wrote: On 11/30/22 8:49 PM, jwatson-CO-edu wrote: Yes, following your instructions I have raylib 4.2.0 and raylib-d 4.2.4 in the project directory.  I am now using the latest version of raylib-d, but this did not resolve the

Re: raylib-d Gamepad Detection Fails

2022-11-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/30/22 8:49 PM, jwatson-CO-edu wrote: Yes, following your instructions I have raylib 4.2.0 and raylib-d 4.2.4 in the project directory.  I am now using the latest version of raylib-d, but this did not resolve the gamepad issue. I can ask around on the raylib channels. Oh, I think I kn

Re: raylib-d Gamepad Detection Fails

2022-11-30 Thread jwatson-CO-edu via Digitalmars-d-learn
On Thursday, 1 December 2022 at 01:12:17 UTC, Steven Schveighoffer wrote: On 11/30/22 7:28 PM, jwatson-CO-edu wrote: On Wednesday, 30 November 2022 at 23:18:33 UTC, ryuukk_ wrote: On Wednesday, 30 November 2022 at 22:46:52 UTC, jwatson-CO-edu wrote: Hello, I have this small [gamepad input tes

Re: raylib-d Gamepad Detection Fails

2022-11-30 Thread Steven Schveighoffer via Digitalmars-d-learn
On 11/30/22 7:28 PM, jwatson-CO-edu wrote: On Wednesday, 30 November 2022 at 23:18:33 UTC, ryuukk_ wrote: On Wednesday, 30 November 2022 at 22:46:52 UTC, jwatson-CO-edu wrote: Hello, I have this small [gamepad input test program](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/

Re: raylib-d Gamepad Detection Fails

2022-11-30 Thread jwatson-CO-edu via Digitalmars-d-learn
On Wednesday, 30 November 2022 at 23:18:33 UTC, ryuukk_ wrote: On Wednesday, 30 November 2022 at 22:46:52 UTC, jwatson-CO-edu wrote: Hello, I have this small [gamepad input test program](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d). Which OS and wich

Re: raylib-d Gamepad Detection Fails

2022-11-30 Thread ryuukk_ via Digitalmars-d-learn
On Wednesday, 30 November 2022 at 22:46:52 UTC, jwatson-CO-edu wrote: Hello, I have this small [gamepad input test program](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d). In the program, I poll the first 3 gamepad IDs, but all detection attempts return

raylib-d Gamepad Detection Fails

2022-11-30 Thread jwatson-CO-edu via Digitalmars-d-learn
Hello, I have this small [gamepad input test program](https://github.com/jwatson-CO-edu/nanoverse/blob/main/d/raylib/04_jsInput/source/app.d). In the program, I poll the first 3 gamepad IDs, but all detection attempts return `false`. I know that my gamepad is an Xinput model. I have tried star