Skip to content
New issue

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

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

Already on GitHub? # to your account

Joystick support #26

Open
ufechner7 opened this issue May 22, 2022 · 2 comments
Open

Joystick support #26

ufechner7 opened this issue May 22, 2022 · 2 comments

Comments

@ufechner7
Copy link

Question: Does Raylib.jl supports Joysticks? If yes, how?

@jakkos-net
Copy link
Contributor

I don't have a gamepad on me right now to test, but you should just be able to call the normal raylib gamepad functions
e.g. Raylib.IsGamepadAvailable(0)

@chengchingwen
Copy link
Owner

The raylib c library does support joysticks, you can see their example here. Generally we are calling their c api, so you should be able to simply translate that example to Julia+Raylib.jl to make it work (PRs are welcome).

OTOH, I think you can also use other joysticks library with Raylib.jl since it just try to get the value of pressed buttons.

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

No branches or pull requests

3 participants