Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PC: implement joystick support #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mardy
Copy link

@mardy mardy commented Sep 14, 2023

Use glfw to get the joystick position. Add a new global variable joystick which is set to the active joystick ID (or to -1, if no joysticks are detected).
For simplicity, for now we pick the first available joystick, but later we could make it configurable.

mardy added a commit to mardy/CavEX that referenced this pull request Sep 14, 2023
Implement a control style a la "The Conduit", where the pointer is used
to rotate the camera, and the joystick is used for moving. This still
needs some work (we probably want to show a small pointer on the Wii
screen, because currently it's hard to know where exactly you are
pointing at), but should give an idea. Having playing "The COnduit" for
a while, this feels much more natural to me.

This depends on xtreme8000#17 in order to be tested on the PC.

Addresses issue xtreme8000#1.
@mardy mardy mentioned this pull request Sep 14, 2023
Use glfw to get the joystick position. Add a new global variable
`joystick` which is set to the active joystick ID (or to -1, if no
joysticks are detected).
For simplicity, for now we pick the first available joystick, but later
we could make it configurable.
mardy added a commit to mardy/CavEX that referenced this pull request Sep 14, 2023
Implement a control style a la "The Conduit", where the pointer is used
to rotate the camera, and the joystick is used for moving. This still
needs some work (we probably want to show a small pointer on the Wii
screen, because currently it's hard to know where exactly you are
pointing at), but should give an idea. Having playing "The COnduit" for
a while, this feels much more natural to me.

This depends on xtreme8000#17 in order to be tested on the PC.

Addresses issue xtreme8000#1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant